From 6b3838600ff99411646978ab622351f86de8a064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Fri, 24 Feb 2023 15:17:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=89=8B=E6=9C=BA=E5=8F=B7=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/api/route/v2.php | 4 ++-- crmeb/app/services/wechat/RoutineServices.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crmeb/app/api/route/v2.php b/crmeb/app/api/route/v2.php index a40c1ef07..1f07b6b08 100644 --- a/crmeb/app/api/route/v2.php +++ b/crmeb/app/api/route/v2.php @@ -35,9 +35,9 @@ Route::group('v2', function () { //是否强制绑定手机号 Route::get('bind_status', 'v2.PublicController/bindPhoneStatus'); //小程序授权绑定手机号 - Route::post('auth_bindind_phone', 'v2.wechat.AuthController/bindingPhone'); + Route::post('auth_bindind_phone', 'v2.wechat.AuthController/authBindingPhone'); //小程序授权后绑定手机号 - Route::post('routine/binding_phone', 'v2.wechat.AuthController/authBindingPhone'); + Route::post('routine/binding_phone', 'v2.wechat.AuthController/BindingPhone'); //小程序手机号登录直接绑定 Route::post('phone_silence_auth', 'v2.wechat.AuthController/silenceAuthBindingPhone'); //微信手机号登录直接绑定 diff --git a/crmeb/app/services/wechat/RoutineServices.php b/crmeb/app/services/wechat/RoutineServices.php index 2c9a8260d..4897cd8d6 100644 --- a/crmeb/app/services/wechat/RoutineServices.php +++ b/crmeb/app/services/wechat/RoutineServices.php @@ -481,10 +481,10 @@ class RoutineServices extends BaseServices } $uid = app()->make(WechatUserServices::class)->openidTouid($userInfoCong['openid']); $userServices = app()->make(UserServices::class); - if ($userServices->count(['phone|account' => $userInfo['purePhoneNumber']])) { + if ($userServices->count(['phone' => $userInfo['purePhoneNumber']])) { throw new ApiException(410028); } - $res = app()->make(UserServices::class)->update(['id' => $uid], ['phone' => $userInfo['purePhoneNumber']]); + $res = app()->make(UserServices::class)->update(['uid' => $uid], ['phone' => $userInfo['purePhoneNumber']]); if ($res) return true; throw new ApiException(410017); }