This commit is contained in:
2025-03-25 13:47:17 +08:00
parent 81042c384c
commit f40c0ef6e7
18 changed files with 377 additions and 32 deletions

View File

@@ -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'],