Authored by 郭成尧

Merge branch 'feature/coupon' into beta/wap

@@ -37,8 +37,10 @@ class CouponController extends AbstractAction @@ -37,8 +37,10 @@ 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 + echo '没有返回数据!';exit;
42 } 44 }
43 // 分享 45 // 分享
44 $shareData = CouponFloorProcess::getShare($receiveData['code'], '领券中心'); 46 $shareData = CouponFloorProcess::getShare($receiveData['code'], '领券中心');