添加UGC
This commit is contained in:
parent
91072b94b4
commit
85a5de6bfa
@ -54,7 +54,7 @@ class User extends Api
|
||||
$secret = $config['secret'];
|
||||
$result = Requests::get('https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=' . $appid . '&secret=' . $secret);
|
||||
$response = json_decode($result->body, true);
|
||||
if ($response['errcode']) {
|
||||
if (!empty($response['errcode'])) {
|
||||
return JsonServer::error('信息获取错误');
|
||||
} else {
|
||||
$userAuth = Db::name('user_auth')->where('user_id', $this->user_id)->find();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user