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