去除测试标签
This commit is contained in:
parent
a0b57c3dfc
commit
00e42df556
@ -31,19 +31,19 @@ class LoginService extends BaseService
|
|||||||
|
|
||||||
$weChat = $this->container->get(WeChat::class);
|
$weChat = $this->container->get(WeChat::class);
|
||||||
|
|
||||||
// // 获取手机号
|
// 获取手机号
|
||||||
// $phone_info = $weChat->getPhone($phone_code);
|
$phone_info = $weChat->getPhone($phone_code);
|
||||||
// if (empty($phone_info) || empty($phone_info['phone_info']) || empty($phone_info['phone_info']['purePhoneNumber'])){
|
if (empty($phone_info) || empty($phone_info['phone_info']) || empty($phone_info['phone_info']['purePhoneNumber'])){
|
||||||
// return fail(HttpEnumCode::GET_WX_ERROR);
|
return fail(HttpEnumCode::GET_WX_ERROR);
|
||||||
// }
|
}
|
||||||
$phone_info['phone_info']['purePhoneNumber'] = "18221234161";
|
// $phone_info['phone_info']['purePhoneNumber'] = "18221234161";
|
||||||
|
|
||||||
// 获取用户openid
|
// 获取用户openid
|
||||||
// $wx_info_data = $weChat->codeToSession($wx_code);
|
$wx_info_data = $weChat->codeToSession($wx_code);
|
||||||
$wx_info_data = array(
|
// $wx_info_data = array(
|
||||||
"session_key" => "SWfpkHtKZRq/G0ONoxigaQ==",
|
// "session_key" => "SWfpkHtKZRq/G0ONoxigaQ==",
|
||||||
"openid" => "o9gYG441zEAHuYoNX7lwFKiQBzKE",
|
// "openid" => "o9gYG441zEAHuYoNX7lwFKiQBzKE",
|
||||||
);
|
// );
|
||||||
if (empty($wx_info_data['session_key']) || empty($wx_info_data['openid'])) {
|
if (empty($wx_info_data['session_key']) || empty($wx_info_data['openid'])) {
|
||||||
return fail(HttpEnumCode::GET_WX_ERROR);
|
return fail(HttpEnumCode::GET_WX_ERROR);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user