在配置好支付参数以后,提交订单支付时报错:
#0 [0]ArgumentCountError in BaseClient.php line 33
Too few arguments to function crmeb\services\easywechat\BaseClient::__construct(), 1 passed in /home/crmeb/services/easywechat/miniPayment/Client.php on line 37 and exactly 2 expected
class BaseClient extends AbstractAPI
{
protected $app;
const KEY_LENGTH_BYTE = 32;
const AUTH_TAG_LENGTH_BYTE = 16;
protected $isService = true;
public function __construct(AccessToken $accessToken, $app)
{
parent::__construct($accessToken);
$this->app = $app;
}
========================================
Call Stack
in BaseClient.php line 33
at BaseClient->__construct() in Client.php line 37
这个client.php 37行的内容是:
parent::__construct($accessToken);
这个父类的构造函数不是2个参数吗,为啥这里调用的时候只传了一个,我没改过任何一行代码啊
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}}
作者 管理员 企业
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回复 {{itemc.comment_user_info.nickname}}
{{itemf.name}}