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