在配置好支付參數(shù)以后,提交訂單支付時報錯:
#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行的內(nèi)容是:
parent::__construct($accessToken);
這個父類的構(gòu)造函數(shù)不是2個參數(shù)嗎,為啥這里調(diào)用的時候只傳了一個,我沒改過任何一行代碼啊