src/Wechat/Payment/QueryOrder.php 1 location
|
@@ 91-94 (lines=4) @@
|
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
// 返回结果判断 |
| 91 |
|
if (isset($transaction['result_code']) && |
| 92 |
|
($transaction['result_code'] === 'FAIL')) { |
| 93 |
|
throw new Exception($transaction['err_code'].': '.$transaction['err_code_des']); |
| 94 |
|
} |
| 95 |
|
|
| 96 |
|
if (isset($transaction['return_code']) && |
| 97 |
|
$transaction['return_code'] === 'FAIL') { |
src/Wechat/Payment/Refund.php 1 location
|
@@ 169-172 (lines=4) @@
|
| 166 |
|
} |
| 167 |
|
|
| 168 |
|
//返回结果判断 |
| 169 |
|
if (isset($refundOrder['result_code']) && |
| 170 |
|
($refundOrder['result_code'] === 'FAIL')) { |
| 171 |
|
throw new Exception($refundOrder['err_code'].': '.$refundOrder['err_code_des']); |
| 172 |
|
} |
| 173 |
|
|
| 174 |
|
if (isset($refundOrder['return_code']) && |
| 175 |
|
$refundOrder['return_code'] === 'FAIL') { |
src/Wechat/Payment/UnifiedOrder.php 1 location
|
@@ 187-190 (lines=4) @@
|
| 184 |
|
} |
| 185 |
|
|
| 186 |
|
$unifiedOrder = XML::parse($response); |
| 187 |
|
if (isset($unifiedOrder['result_code']) && |
| 188 |
|
($unifiedOrder['result_code'] === 'FAIL')) { |
| 189 |
|
throw new Exception($unifiedOrder['err_code'].': '.$unifiedOrder['err_code_des']); |
| 190 |
|
} |
| 191 |
|
|
| 192 |
|
if (isset($unifiedOrder['return_code']) && |
| 193 |
|
$unifiedOrder['return_code'] === 'FAIL') { |