Authored by 郭成尧

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

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