Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
4 changed files
with
9 additions
and
5 deletions
@@ -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) { |
@@ -385,7 +385,11 @@ class UserModel | @@ -385,7 +385,11 @@ class UserModel | ||
385 | // 处理YOHO币数据 | 385 | // 处理YOHO币数据 |
386 | if(isset($yohoCoin['data']) && !empty($yohoCoin['data'])){ | 386 | if(isset($yohoCoin['data']) && !empty($yohoCoin['data'])){ |
387 | $coinList = $yohoCoin['data']['coinlist']; | 387 | $coinList = $yohoCoin['data']['coinlist']; |
388 | - $data['money'] = $yohoCoin['data']['total']; | 388 | + |
389 | + // 获取有货币总数 | ||
390 | + $total = self::getYohoCoinData($uid); | ||
391 | + $data['money'] = !empty($total) ? $total['yohoCoin']['coinNum'] : 0; | ||
392 | + | ||
389 | foreach($coinList as $key => $val){ | 393 | foreach($coinList as $key => $val){ |
390 | $result[$key]['title'] = $val['message']; | 394 | $result[$key]['title'] = $val['message']; |
391 | $result[$key]['time'] = $val['date']; | 395 | $result[$key]['time'] = $val['date']; |
@@ -276,7 +276,7 @@ class IndexController extends AbstractAction | @@ -276,7 +276,7 @@ class IndexController extends AbstractAction | ||
276 | $uid = $this->getUid(true); | 276 | $uid = $this->getUid(true); |
277 | $cartGoods = CartModel::getCartData($uid, $shoppingKey); | 277 | $cartGoods = CartModel::getCartData($uid, $shoppingKey); |
278 | if (empty($cartGoods) || isset($cartGoods['isEmptyCart'])) { | 278 | if (empty($cartGoods) || isset($cartGoods['isEmptyCart'])) { |
279 | - $this->go(Helpers::url('/shoppingcart')); | 279 | + $this->go(Helpers::url('/cart/index/index')); |
280 | } | 280 | } |
281 | 281 | ||
282 | $cartType = $this->get('cartType', 'ordinary'); | 282 | $cartType = $this->get('cartType', 'ordinary'); |
@@ -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