add clear
This commit is contained in:
+12
-7
@@ -56,13 +56,18 @@ class Recharge extends SmallProgram
|
|||||||
// $return['code'] = 401;
|
// $return['code'] = 401;
|
||||||
// $return['message'] = '预支付系统数据签名验证失败!';
|
// $return['message'] = '预支付系统数据签名验证失败!';
|
||||||
// } else {
|
// } else {
|
||||||
$return['code'] = 0;
|
|
||||||
$return['data'] = $data;
|
if (is_string($body)) {
|
||||||
$return['data']['postBody'] = $body;
|
$body = json_decode($body, true);
|
||||||
if ($data['return_code'] == 'FAIL') {
|
}
|
||||||
$return['code'] = -1;
|
|
||||||
$return['message'] = $data['return_msg'];
|
$return['code'] = 0;
|
||||||
}
|
$return['data'] = $data;
|
||||||
|
$return['data']['postBody'] = $body;
|
||||||
|
if ($data['return_code'] == 'FAIL') {
|
||||||
|
$return['code'] = -1;
|
||||||
|
$return['message'] = $data['return_msg'];
|
||||||
|
}
|
||||||
// }
|
// }
|
||||||
return new Result($return);
|
return new Result($return);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user