Update chapter1.php

重新编写chapter1.php的代码