错误描述:短信验证码登录、申请开票时接口报错内容如下
修复方法:
1、打开文件:crmeb/services/SmsService.php将以下内容:
public function __construct()
{
$this->accessKey = sys_config('yihaotong_appid', '');
$this->secretKey = sys_config('yihaotong_appsecret', '');
$this->cache = app()->cache;
$token = new AccessToken();
$accessToken = $token->setConfig($this->accessKey, $this->secretKey)
->setCache(app('cache.store'))->setBaseUri('https://api.crmeb.com/api/v2');
$this->factory = Factory::setAccessToken($accessToken);
}
修改为:
public function __construct()
{
$this->accessKey = sys_config('yihaotong_appid', '');
$this->secretKey = sys_config('yihaotong_appsecret', '');
$this->cache = app()->cache;
$this->factory = Factory::setAccessToken(new AccessToken([
'access_key'=>$this->accessKey,
'secret_key'=>$this->secretKey,
'base_url'=>'https://api.crmeb.com/api/v2',
],app('cache.store')));
}
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}}