mirror of
https://github.com/easychen/pushdeer.git
synced 2025-01-10 15:05:27 +08:00
fix result format
This commit is contained in:
parent
b197b6fb23
commit
16ccf6c247
@ -114,11 +114,11 @@ class PushDeerUserController extends Controller
|
||||
} else {
|
||||
$url = "https://api2.pushdeer.com/login/unoinid?code=".urlencode($validated['code']);
|
||||
$ret = json_decode(file_get_contents($url), true);
|
||||
if (!$ret || !isset($ret['data']) || !isset($ret['data']['unionid'])) {
|
||||
if (!$ret || !isset($ret['content']) || !isset($ret['content']['unionid'])) {
|
||||
return send_error("错误的Code", ErrorCode('REMOTE'));
|
||||
}
|
||||
|
||||
$code_info = ['unionid'=>$ret['data']['unionid']];
|
||||
$code_info = ['unionid'=>$ret['content']['unionid']];
|
||||
}
|
||||
|
||||
// 现在拿到unionid了
|
||||
|
Loading…
Reference in New Issue
Block a user