TP6.0.7项目数据插入成功,跳转时Jump.php报错
不知是何原因,请大神给指点迷津!
已在BaseController中use \liliuwei\think\Jump;还总是提示
#0 [0]Error in Jump.php line 163
Call to a member function isJson() on null
细节还是如图所示
???????????????????????????????????????????????????????
你的三目运算判断里面$this->request->isAjax()为null,你可以改成return $this->request->isAjax()?'html':'json';
如果还不行,就看一下'json':'html'这里是不是用双引号
已自行解决,子类中不能用__construct()