浏览代码

重复绑定2

laowu 2 天之前
父节点
当前提交
97f419993a
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      app/Http/Controllers/Game/LoginController.php

+ 1 - 2
app/Http/Controllers/Game/LoginController.php

@@ -199,8 +199,7 @@ class LoginController extends Controller
             AccountPhone::insert(compact('UserID', 'PhoneNum', 'BindDate', 'Channel', 'RegionID'));
         } catch (\Throwable $e) {
             if (stripos($e->getMessage(), 'duplicate key') !== false) {
-                return apiReturnFail(['web.verify.already_bound', 'web.verify.already_bound'],
-                    GlobalUserInfo::getGameUserInfoToWeb('UserID',$first->UserID));
+                return apiReturnFail(['web.verify.already_bound', 'web.verify.already_bound']);
             }
             throw $e;
         }