__construct

thinkphp6 实例化调用控制器时报错
错误记录
Too few arguments to function app\BaseController::__construct(), 0 passed
解决:

$pay = new Alipay();
改成
$pay = new Alipay($this->app);
posted @ 2022-02-15 11:39  子岚天羽卿怜水  阅读(505)  评论(0编辑  收藏  举报