Authored by Rock Zhang

Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop

@@ -443,13 +443,13 @@ class Helpers @@ -443,13 +443,13 @@ class Helpers
443 * @param string $areaMobile 443 * @param string $areaMobile
444 * @return boolean 444 * @return boolean
445 */ 445 */
446 - public static function verifyAreaMobile($areaMobile) 446 + public static function verifyAreaMobile($areaMobile, $area)
447 { 447 {
448 if (empty($areaMobile)) { 448 if (empty($areaMobile)) {
449 return false; 449 return false;
450 } 450 }
451 if (!strpos($areaMobile, '-')) { 451 if (!strpos($areaMobile, '-')) {
452 - return self::areaMobielVerify($areaMobile); 452 + return self::areaMobielVerify($areaMobile, $area);
453 } else { 453 } else {
454 $mobileData = explode('-', $areaMobile); 454 $mobileData = explode('-', $areaMobile);
455 if (count($mobileData) != 2) { 455 if (count($mobileData) != 2) {
@@ -113,7 +113,7 @@ class LoginController extends AbstractAction @@ -113,7 +113,7 @@ class LoginController extends AbstractAction
113 113
114 /* 判断参数是否有效 */ 114 /* 判断参数是否有效 */
115 $verifyEmail = Helpers::verifyEmail($profile); 115 $verifyEmail = Helpers::verifyEmail($profile);
116 - $verifyMobile = ($area === '86') ? Helpers::verifyMobile($profile) : Helpers::verifyAreaMobile($profile); 116 + $verifyMobile = ($area === '86') ? Helpers::verifyMobile($profile) : Helpers::verifyAreaMobile($profile, $area);
117 if (!$verifyEmail && !$verifyMobile) { 117 if (!$verifyEmail && !$verifyMobile) {
118 break; 118 break;
119 } 119 }