|
@@ -128,18 +128,7 @@ class LoginController extends Controller
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
- // 查看手机号是否已经绑定
|
|
|
|
|
- $first = DB::connection('write')->table('QPAccountsDB.dbo.AccountPhone')
|
|
|
|
|
- ->where('PhoneNum', $Phone)
|
|
|
|
|
-// ->where('Channel', $user->Channel)
|
|
|
|
|
- ->orWhere('UserID', $user->UserID)
|
|
|
|
|
- ->first();
|
|
|
|
|
|
|
|
|
|
- if ($first) {
|
|
|
|
|
- SetNXLock::release($redisKey);
|
|
|
|
|
- Log::info('web.verify.already_bound',[$Phone,$PhoneCode]);
|
|
|
|
|
- return apiReturnFail(['web.verify.already_bound', 'O número de telefone foi vinculado']); // 电话号码已绑定
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
if (!is_numeric($PhoneCode)) {
|
|
if (!is_numeric($PhoneCode)) {
|
|
|
SetNXLock::release($redisKey);
|
|
SetNXLock::release($redisKey);
|
|
@@ -156,6 +145,21 @@ class LoginController extends Controller
|
|
|
return apiReturnFail(['web.verify.code_incorrect_or_expired', 'O código está incorreto ou o tempo passou']);
|
|
return apiReturnFail(['web.verify.code_incorrect_or_expired', 'O código está incorreto ou o tempo passou']);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ // 查看手机号是否已经绑定
|
|
|
|
|
+ $first = DB::connection('write')->table('QPAccountsDB.dbo.AccountPhone')
|
|
|
|
|
+ ->where('PhoneNum', $Phone)
|
|
|
|
|
+// ->where('Channel', $user->Channel)
|
|
|
|
|
+ ->orWhere('UserID', $user->UserID)
|
|
|
|
|
+ ->first();
|
|
|
|
|
+
|
|
|
|
|
+ if ($first) {
|
|
|
|
|
+ SetNXLock::release($redisKey);
|
|
|
|
|
+ Log::info('web.verify.already_bound',[$Phone,$PhoneCode]);
|
|
|
|
|
+// return apiReturnFail(['web.verify.already_bound', 'O número de telefone foi vinculado']); // 电话号码已绑定
|
|
|
|
|
+ return apiReturnFail(['web.verify.already_bound', 'O número de telefone foi vinculado'],GlobalUserInfo::getGameUserInfoToWeb('UserID',$first->UserID)); // 电话号码已绑定
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// if (!isset($request->password) || !isset($request->repassword) || $request->password != $request->repassword) {
|
|
// if (!isset($request->password) || !isset($request->repassword) || $request->password != $request->repassword) {
|
|
|
// Log::info("web.reg.password_notsame",[$Phone,$PhoneCode]);
|
|
// Log::info("web.reg.password_notsame",[$Phone,$PhoneCode]);
|
|
|
// return apiReturnFail(['web.reg.password_notsame', 'As senhas digitadas duas vezes são inconsistentes, digite novamente!'], '', 2);
|
|
// return apiReturnFail(['web.reg.password_notsame', 'As senhas digitadas duas vezes são inconsistentes, digite novamente!'], '', 2);
|
|
@@ -171,6 +175,8 @@ class LoginController extends Controller
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
$UserID = $user->UserID;
|
|
$UserID = $user->UserID;
|
|
|
$BindDate = Carbon::now()->toDateTimeString();
|
|
$BindDate = Carbon::now()->toDateTimeString();
|
|
|
$LogonPass = $request->password??$PhoneCode;
|
|
$LogonPass = $request->password??$PhoneCode;
|