输出调试代码
This commit is contained in:
@@ -16,6 +16,7 @@ trait ApiResponse
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* [$statusCode description]
|
* [$statusCode description]
|
||||||
|
*
|
||||||
* @var [type]
|
* @var [type]
|
||||||
*/
|
*/
|
||||||
protected $statusCode = FoundationResponse::HTTP_OK;
|
protected $statusCode = FoundationResponse::HTTP_OK;
|
||||||
@@ -24,6 +25,7 @@ trait ApiResponse
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 加密
|
* 加密
|
||||||
|
*
|
||||||
* @param <type> $value
|
* @param <type> $value
|
||||||
* @return <type>
|
* @return <type>
|
||||||
*/
|
*/
|
||||||
@@ -40,6 +42,7 @@ trait ApiResponse
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 解密
|
* 解密
|
||||||
|
*
|
||||||
* @param <type> $value
|
* @param <type> $value
|
||||||
* @return <type>
|
* @return <type>
|
||||||
*/
|
*/
|
||||||
@@ -101,6 +104,8 @@ trait ApiResponse
|
|||||||
$keydesc = $this->keydesc($data);
|
$keydesc = $this->keydesc($data);
|
||||||
$keydescArr = json_decode($this->keydesc($data), true);
|
$keydescArr = json_decode($this->keydesc($data), true);
|
||||||
if (empty($keydescArr) && ! empty($keydesc)) {
|
if (empty($keydescArr) && ! empty($keydesc)) {
|
||||||
|
info(json_encode($keydescArr));
|
||||||
|
info(json_encode($keydesc));
|
||||||
return '传递的json数据不对';
|
return '传递的json数据不对';
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,6 +122,7 @@ trait ApiResponse
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 成功的返回
|
* 成功的返回
|
||||||
|
*
|
||||||
* @Author :<C.Jason>
|
* @Author :<C.Jason>
|
||||||
* @Date :2018-05-22
|
* @Date :2018-05-22
|
||||||
* @param [type] $data [description]
|
* @param [type] $data [description]
|
||||||
|
|||||||
Reference in New Issue
Block a user