Authored by 郭成尧

领取优惠券方法+优惠券列表结构修改2

@@ -179,7 +179,7 @@ class Yohobuy @@ -179,7 +179,7 @@ class Yohobuy
179 } 179 }
180 if (!empty($data)) { 180 if (!empty($data)) {
181 $url = self::httpBuildQuery($url, $data); 181 $url = self::httpBuildQuery($url, $data);
182 - } //echo $url; 182 + } echo $url;
183 /* 开启缓存的情况 */ 183 /* 开启缓存的情况 */
184 if ($cache && USE_CACHE) { 184 if ($cache && USE_CACHE) {
185 // 先尝试获取一级缓存(master), 有数据则直接返回. 185 // 先尝试获取一级缓存(master), 有数据则直接返回.
@@ -34,6 +34,8 @@ class CouponController extends AbstractAction @@ -34,6 +34,8 @@ class CouponController extends AbstractAction
34 if (isset($resource['code']) && $resource['code'] == 200) { 34 if (isset($resource['code']) && $resource['code'] == 200) {
35 $result = CouponFloorProcess::getContent($resource['data']); 35 $result = CouponFloorProcess::getContent($resource['data']);
36 } 36 }
  37 + print_r('<br/>');
  38 + var_dump($result);
37 $this->_view->display('index', array( 39 $this->_view->display('index', array(
38 'floor' => $result, 40 'floor' => $result,
39 'floorPage' => true 41 'floorPage' => true
@@ -47,6 +49,8 @@ class CouponController extends AbstractAction @@ -47,6 +49,8 @@ class CouponController extends AbstractAction
47 */ 49 */
48 public function receiveCouponAction() 50 public function receiveCouponAction()
49 { 51 {
  52 + //tar mark 接口数据测试
  53 +// var_dump(CouponData::receiveCoupon(7893817,23121));exit;
50 $returnData = array(); 54 $returnData = array();
51 // 获取优惠券 ID 55 // 获取优惠券 ID
52 $receiveData = filter_input_array(INPUT_GET, array( 56 $receiveData = filter_input_array(INPUT_GET, array(