Merge branch 'feature/wap325' of http://git.dev.yoho.cn/web/yohobuy into feature/wap325
Showing
3 changed files
with
7 additions
and
6 deletions
@@ -224,8 +224,7 @@ class CartModel | @@ -224,8 +224,7 @@ class CartModel | ||
224 | 224 | ||
225 | $product = CartData::cartProductData($uid, $skn); | 225 | $product = CartData::cartProductData($uid, $skn); |
226 | if (isset($product['code']) && $product['code'] === 200) { | 226 | if (isset($product['code']) && $product['code'] === 200) { |
227 | - $result['code'] = 200; | ||
228 | - $result['data'] = self::procGoodsDetail($product['data'], $num); | 227 | + $result = self::procGoodsDetail($product['data'], $num); |
229 | } | 228 | } |
230 | 229 | ||
231 | return $result; | 230 | return $result; |
@@ -244,7 +243,7 @@ class CartModel | @@ -244,7 +243,7 @@ class CartModel | ||
244 | 243 | ||
245 | $product = CartData::giftProductData($skn, $promotionId); | 244 | $product = CartData::giftProductData($skn, $promotionId); |
246 | if (isset($product['code']) && $product['code'] === 200) { | 245 | if (isset($product['code']) && $product['code'] === 200) { |
247 | - $result['data'] = self::procGoodsDetail($product['data']); | 246 | + $result = self::procGoodsDetail($product['data']); |
248 | } | 247 | } |
249 | 248 | ||
250 | return $result; | 249 | return $result; |
@@ -195,7 +195,9 @@ class IndexController extends AbstractAction | @@ -195,7 +195,9 @@ class IndexController extends AbstractAction | ||
195 | $result['num'] = $num; | 195 | $result['num'] = $num; |
196 | } | 196 | } |
197 | 197 | ||
198 | - $this->echoJson($result); | 198 | + $this->_view->display('gift-info', array( |
199 | + 'cartInfo' => $result | ||
200 | + )); | ||
199 | } | 201 | } |
200 | 202 | ||
201 | // /* | 203 | // /* |
@@ -223,7 +225,7 @@ class IndexController extends AbstractAction | @@ -223,7 +225,7 @@ class IndexController extends AbstractAction | ||
223 | 225 | ||
224 | $this->_view->display('gift-info', array( | 226 | $this->_view->display('gift-info', array( |
225 | 'promotionId' => $promotionId, | 227 | 'promotionId' => $promotionId, |
226 | - 'cartInfo' => $result['data'] | 228 | + 'cartInfo' => $result |
227 | )); | 229 | )); |
228 | } | 230 | } |
229 | 231 |
-
Please register or login to post a comment