update
This commit is contained in:
@@ -26,6 +26,9 @@ class TokenLogic extends BaseLogic
|
||||
{
|
||||
$url = 'https://wechat-api-test.excn.vip/vip_groups/auth_info';
|
||||
$res = \wanghua\general_utility_tools_php\http\Curl::curl_post($url, []);
|
||||
if(empty($res['data'])){
|
||||
throw new \Exception('获取token失败');
|
||||
}
|
||||
$res_data = json_decode($res['data'], true);
|
||||
return [
|
||||
'token' => $res_data['gewe-token'],
|
||||
|
||||
Reference in New Issue
Block a user