Authored by yyq

php登录去除海外号码验证

... ... @@ -118,7 +118,11 @@ class LoginController extends WebAction
/* 判断参数是否有效 */
$verifyEmail = Helpers::verifyEmail($account);
$verifyMobile = Helpers::verifyAreaMobile(Helpers::makeMobile($area, $account));
if ($area === '86') {
$verifyMobile = Helpers::verifyAreaMobile(Helpers::makeMobile($area, $account));
} else {
$verifyMobile = is_numeric($account);
}
if (!$verifyEmail && !$verifyMobile) {
break;
}
... ...