Authored by 郭成尧

获取UID根据环境更改

@@ -29,8 +29,12 @@ class CouponController extends AbstractAction @@ -29,8 +29,12 @@ class CouponController extends AbstractAction
29 'code' => FILTER_DEFAULT 29 'code' => FILTER_DEFAULT
30 )); 30 ));
31 $result = array(); 31 $result = array();
32 -  
33 - $uid = $this->getUid(); 32 + $uid = '';
  33 + if($this->isApp()){
  34 + $uid = $this->get('uid');
  35 + }else{
  36 + $uid = $this->getUid();
  37 + }
34 $resource = CouponData::getCouponRousource($receiveData['code'], $uid); 38 $resource = CouponData::getCouponRousource($receiveData['code'], $uid);
35 if (isset($resource['code']) && $resource['code'] == 200) { 39 if (isset($resource['code']) && $resource['code'] == 200) {
36 $result = CouponFloorProcess::getContent($resource['data']); 40 $result = CouponFloorProcess::getContent($resource['data']);