Showing
1 changed file
with
7 additions
and
3 deletions
@@ -14,6 +14,7 @@ use Plugin\Helpers; | @@ -14,6 +14,7 @@ use Plugin\Helpers; | ||
14 | 14 | ||
15 | class CouponController extends AbstractAction | 15 | class CouponController extends AbstractAction |
16 | { | 16 | { |
17 | + private $contentCode = ''; | ||
17 | 18 | ||
18 | /** | 19 | /** |
19 | * 领券楼层数据列表 | 20 | * 领券楼层数据列表 |
@@ -25,13 +26,16 @@ class CouponController extends AbstractAction | @@ -25,13 +26,16 @@ class CouponController extends AbstractAction | ||
25 | $receiveData = filter_input_array(INPUT_GET, array( | 26 | $receiveData = filter_input_array(INPUT_GET, array( |
26 | 'contentCode' => FILTER_DEFAULT | 27 | 'contentCode' => FILTER_DEFAULT |
27 | )); | 28 | )); |
29 | + $this->contentCode = $receiveData['contentCode']; | ||
28 | $result = array(); | 30 | $result = array(); |
29 | 31 | ||
30 | // 正常接口调用 | 32 | // 正常接口调用 |
31 | -// $uid = $this->getUid(); | ||
32 | -// $resource = CouponData::getCouponRousource($receiveData['contentCode'],$uid); | 33 | + $uid = $this->getUid(); |
34 | + //tar debug | ||
35 | +// CouponFloorProcess::debugOut($uid); | ||
36 | + $resource = CouponData::getCouponRousource($receiveData['contentCode'], $uid); | ||
33 | // 数据写死,调用接口,测试使用 | 37 | // 数据写死,调用接口,测试使用 |
34 | - $resource = CouponData::getCouponRousource('b38b9c4f1c76f89533e9214629b458e4', 8040277); | 38 | +// $resource = CouponData::getCouponRousource('b38b9c4f1c76f89533e9214629b458e4', 8040277); |
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']); |
37 | } | 41 | } |
-
Please register or login to post a comment