Showing
1 changed file
with
5 additions
and
1 deletions
@@ -118,7 +118,11 @@ class LoginController extends WebAction | @@ -118,7 +118,11 @@ class LoginController extends WebAction | ||
118 | 118 | ||
119 | /* 判断参数是否有效 */ | 119 | /* 判断参数是否有效 */ |
120 | $verifyEmail = Helpers::verifyEmail($account); | 120 | $verifyEmail = Helpers::verifyEmail($account); |
121 | - $verifyMobile = Helpers::verifyAreaMobile(Helpers::makeMobile($area, $account)); | 121 | + if ($area === '86') { |
122 | + $verifyMobile = Helpers::verifyAreaMobile(Helpers::makeMobile($area, $account)); | ||
123 | + } else { | ||
124 | + $verifyMobile = is_numeric($account); | ||
125 | + } | ||
122 | if (!$verifyEmail && !$verifyMobile) { | 126 | if (!$verifyEmail && !$verifyMobile) { |
123 | break; | 127 | break; |
124 | } | 128 | } |
-
Please register or login to post a comment