Authored by hf

do fixes bug to login errors

@@ -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) {
@@ -32,7 +32,6 @@ class DetailModel @@ -32,7 +32,6 @@ class DetailModel
32 if (is_numeric($productId) && is_numeric($goodsId)) { 32 if (is_numeric($productId) && is_numeric($goodsId)) {
33 // 调用服务 33 // 调用服务
34 $baseInfo = DetailData::baseInfo($productId, $uid); 34 $baseInfo = DetailData::baseInfo($productId, $uid);
35 - var_dump($baseInfo);  
36 35
37 // 判断商品是否在架 36 // 判断商品是否在架
38 if (empty($baseInfo['status'])) { 37 if (empty($baseInfo['status'])) {
@@ -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 }