Authored by 郭成尧

把被梁删掉的代码补回去

@@ -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'], '领券中心');