|
|
@@ -31,6 +31,7 @@ use FormBuilder\Factory\Elm;
|
|
31
|
31
|
use think\Exception;
|
|
32
|
32
|
use think\exception\ValidateException;
|
|
33
|
33
|
use think\facade\Db;
|
|
|
34
|
+use think\facade\Log;
|
|
34
|
35
|
use think\facade\Queue;
|
|
35
|
36
|
use think\facade\Route;
|
|
36
|
37
|
use Alipay\AopClient;
|
|
|
@@ -1188,8 +1189,9 @@ class StoreRefundOrderRepository extends BaseRepository
|
|
1188
|
1189
|
'notify_url' => env('APP_URL')."/api/hf_notify/notify_order",
|
|
1189
|
1190
|
];
|
|
1190
|
1191
|
$hf_refund_res = $this->Payment_refund_traits($refund_traits,$key,$group_order['pay_wx']);
|
|
1191
|
|
- Db::name('log')->insert(['data'=>'汇付退款返回结果:'.json_encode($hf_refund_res)]);
|
|
1192
|
|
- if($hf_refund_res['status'] == 'failed'){
|
|
|
1192
|
+ Db::name('log')->insert(['data' => '汇付退款返回结果(' . $group_order['group_order_sn'] . '):' . json_encode($hf_refund_res)]);
|
|
|
1193
|
+ if($hf_refund_res['status'] ?? '' == 'failed'){
|
|
|
1194
|
+ Log::error('汇付退款返回结果(' . $group_order['group_order_sn'] . '):' . json_encode($hf_refund_res));
|
|
1193
|
1195
|
throw new ValidateException('退款失败11');
|
|
1194
|
1196
|
}
|
|
1195
|
1197
|
|