From 6f29f811b5b4011b2e235e6a9222fb4f9471846f Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Fri, 29 Nov 2024 16:47:24 +0800 Subject: [PATCH] feat : wx login --- app/Service/Api/User/BindPhoneByWxService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Service/Api/User/BindPhoneByWxService.php b/app/Service/Api/User/BindPhoneByWxService.php index f0a2526..56ba817 100644 --- a/app/Service/Api/User/BindPhoneByWxService.php +++ b/app/Service/Api/User/BindPhoneByWxService.php @@ -37,7 +37,7 @@ class BindPhoneByWxService extends BaseService $userInfo = $this->getUserInfo($this->userId); - $userInfo->phone = $wxPhone['phone_info']['purePhoneNumber']; + $userInfo->mobile = $wxPhone['phone_info']['purePhoneNumber']; if (!$userInfo->save()) throw new ErrException('绑定手机号失败,请联系人工客服处理'); return $this->return->success();