输出调试代码
This commit is contained in:
@@ -49,6 +49,7 @@ trait ApiResponse
|
||||
public function keydesc($value)
|
||||
{
|
||||
$iv = substr($this->user->des3key, 0, 8);
|
||||
info('iv'.$iv);
|
||||
$ret = openssl_decrypt($value, 'DES-EDE3-CBC', $this->user->des3key, 0, $iv);
|
||||
if (false === $ret) {
|
||||
return openssl_error_string();
|
||||
@@ -78,7 +79,6 @@ trait ApiResponse
|
||||
if (! $this->user) {
|
||||
return '参数server_id与key不匹配';
|
||||
}
|
||||
info(json_encode($this->user));
|
||||
|
||||
if ($this->user->status != 1) {
|
||||
return '渠道商状态不正确';
|
||||
@@ -105,6 +105,7 @@ trait ApiResponse
|
||||
$keydesc = $this->keydesc($data);
|
||||
$keydescArr = json_decode($this->keydesc($data), true);
|
||||
if (empty($keydescArr) && ! empty($keydesc)) {
|
||||
info(json_encode($data));
|
||||
info(json_encode($keydescArr));
|
||||
info(json_encode($keydesc));
|
||||
return '传递的json数据不对';
|
||||
|
||||
Reference in New Issue
Block a user