Showing
1 changed file
with
8 additions
and
1 deletions
@@ -37,8 +37,15 @@ class CouponController extends AbstractAction | @@ -37,8 +37,15 @@ class CouponController extends AbstractAction | ||
37 | $uid = $this->getUid(); | 37 | $uid = $this->getUid(); |
38 | } | 38 | } |
39 | $resource = CouponData::getCouponRousource($receiveData['code'], $uid); | 39 | $resource = CouponData::getCouponRousource($receiveData['code'], $uid); |
40 | - if (isset($resource['code']) && $resource['code'] == 200) { | 40 | + if (isset($resource['code']) && $resource['code'] === 200) { |
41 | $result = CouponFloorProcess::getContent($resource['data']); | 41 | $result = CouponFloorProcess::getContent($resource['data']); |
42 | + }else{ | ||
43 | + $this->_view->display('index', array( | ||
44 | + 'content' => array( | ||
45 | + 'noData' => true, | ||
46 | + ), | ||
47 | + 'floorPage' => true | ||
48 | + )); | ||
42 | } | 49 | } |
43 | // 分享 | 50 | // 分享 |
44 | $shareData = CouponFloorProcess::getShare($receiveData['code'], '领券中心'); | 51 | $shareData = CouponFloorProcess::getShare($receiveData['code'], '领券中心'); |
-
Please register or login to post a comment