Authored by 郭成尧

错误输出方法位置变更

... ... @@ -130,9 +130,34 @@ class CouponFloorProcess
return $data;
}
/**
*
* 单张图片的处理方法,不用
*
* @param $data
* @return mixed
*/
private static function single_image($data)
{
$data['isSingleImage'] = true;
return $data;
}
/**
*
* 数据输出
*
* @param $data
* @param bool $is_exit
*/
public static function debugOut($data, $is_exit = true)
{
header("Content-type:text/html;charset=utf-8");
echo '<pre>';
print_r($data);
echo '</pre>';
if ($is_exit) {
exit;
}
}
}
\ No newline at end of file
... ...
... ... @@ -36,7 +36,7 @@ class CouponController extends AbstractAction
$result = CouponFloorProcess::getContent($resource['data']);
}
// $this->debugOut($resource);
// CouponFloorProcess::debugOut($resource);
$this->_view->display('index', array(
'content' => $result,
'floorPage' => true
... ... @@ -50,9 +50,7 @@ class CouponController extends AbstractAction
*/
public function receiveCouponAction()
{
//tar mark 接口数据测试
// header("Content-type:text/html;charset=utf-8");
// var_dump(CouponData::receiveCoupon(7893817,1516));exit;
// CouponFloorProcess::debugOut(CouponData::receiveCoupon(7893817,1516));
$returnData = array();
// 获取优惠券 ID
$receiveData = filter_input_array(INPUT_GET, array(
... ... @@ -233,18 +231,4 @@ class CouponController extends AbstractAction
];
return $result;
}
/**
*
* 数据输出
*
* @param $data
*/
public function debugOut($data){
header("Content-type:text/html;charset=utf-8");
echo '<pre>';
print_r($data);
echo '</pre>';
exit;
}
}
\ No newline at end of file
... ...