学生openid
This commit is contained in:
parent
78a61bfe9d
commit
fe84095fd7
@ -99,7 +99,17 @@ class StudentService
|
|||||||
}
|
}
|
||||||
|
|
||||||
$code = $request->post('code');
|
$code = $request->post('code');
|
||||||
|
|
||||||
|
print '<pre>';
|
||||||
|
print_r($code);
|
||||||
|
die;
|
||||||
|
|
||||||
$user_info = WechatSubscriptController::getCodeAccessToken($code);
|
$user_info = WechatSubscriptController::getCodeAccessToken($code);
|
||||||
|
|
||||||
|
print '<pre>';
|
||||||
|
print_r($user_info);
|
||||||
|
die;
|
||||||
|
|
||||||
if (isset($result['code'])) {
|
if (isset($result['code'])) {
|
||||||
throw new Exception('获取信息失败');
|
throw new Exception('获取信息失败');
|
||||||
}
|
}
|
||||||
@ -114,7 +124,6 @@ class StudentService
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'code' => ResponseCode::SUCCESS,
|
'code' => ResponseCode::SUCCESS,
|
||||||
'msg' => 'success'
|
'msg' => 'success'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user