fixes bug to product detail page to remove check is down status
Showing
3 changed files
with
8 additions
and
7 deletions
@@ -421,15 +421,16 @@ class Helpers | @@ -421,15 +421,16 @@ class Helpers | ||
421 | * 验证国际手机号是否合法 | 421 | * 验证国际手机号是否合法 |
422 | * | 422 | * |
423 | * @param string $areaMobile | 423 | * @param string $areaMobile |
424 | + * @param int $area | ||
424 | * @return boolean | 425 | * @return boolean |
425 | */ | 426 | */ |
426 | - public static function verifyAreaMobile($areaMobile) | 427 | + public static function verifyAreaMobile($areaMobile, $area) |
427 | { | 428 | { |
428 | if (empty($areaMobile)) { | 429 | if (empty($areaMobile)) { |
429 | return false; | 430 | return false; |
430 | } | 431 | } |
431 | if (!strpos($areaMobile, '-')) { | 432 | if (!strpos($areaMobile, '-')) { |
432 | - return self::areaMobielVerify($areaMobile); | 433 | + return self::areaMobielVerify($areaMobile, $area); |
433 | } else { | 434 | } else { |
434 | $mobileData = explode('-', $areaMobile); | 435 | $mobileData = explode('-', $areaMobile); |
435 | if (count($mobileData) != 2) { | 436 | if (count($mobileData) != 2) { |
@@ -33,10 +33,10 @@ class DetailModel | @@ -33,10 +33,10 @@ class DetailModel | ||
33 | // 调用服务 | 33 | // 调用服务 |
34 | $baseInfo = DetailData::baseInfo($productId, $uid); | 34 | $baseInfo = DetailData::baseInfo($productId, $uid); |
35 | 35 | ||
36 | - // 判断商品是否在架 | ||
37 | - if (empty($baseInfo['status'])) { | ||
38 | - return $result; | ||
39 | - } | 36 | +// // 判断商品是否在架 |
37 | +// if (empty($baseInfo['status'])) { | ||
38 | +// return $result; | ||
39 | +// } | ||
40 | 40 | ||
41 | // 商品名称 | 41 | // 商品名称 |
42 | if (isset($baseInfo['productName'])) { | 42 | if (isset($baseInfo['productName'])) { |
@@ -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 | } |
-
Please register or login to post a comment