一、在application/config.php文件里面 新增 'datetime_format' = false
二、在application/home/controller/Payment.php 在顶部namespace app\home\controller;的下面加上:ini_set("error_reporting","E_ALL & ~E_NOTICE");