mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update WechatService.php
This commit is contained in:
parent
fff1fc3dd2
commit
038363d008
@ -112,11 +112,7 @@ class WechatService extends Service
|
|||||||
$data['sign'] = md5("{$data['class']}#{$appid}#{$appkey}#{$data['time']}#{$data['nostr']}");
|
$data['sign'] = md5("{$data['class']}#{$appid}#{$appkey}#{$data['time']}#{$data['nostr']}");
|
||||||
// 创建远程连接,默认使用 JSON RPC 方式
|
// 创建远程连接,默认使用 JSON RPC 方式
|
||||||
$token = enbase64url(json_encode($data, JSON_UNESCAPED_UNICODE));
|
$token = enbase64url(json_encode($data, JSON_UNESCAPED_UNICODE));
|
||||||
$client = new JsonRpcClient("https://open.cuci.cc/service/api.client/jsonrpc?not_init_session=1&token={$token}");
|
return new JsonRpcClient("https://open.cuci.cc/service/api.client/jsonrpc?not_init_session=1&token={$token}");
|
||||||
if (is_numeric(stripos($client->__call('_get_class_name_', []), 'Exception'))) {
|
|
||||||
throw new \think\admin\Exception($client->getMessage(), $client->getCode());
|
|
||||||
}
|
|
||||||
return $client;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user