|
@@ -1221,9 +1221,13 @@ class WholeController extends Curd
|
|
|
'refund_desc' => '退款',
|
|
|
];
|
|
|
$res = Pay::wechat(config('payment.wxpay'))->refund($wxRefundData);
|
|
|
- dump($res);
|
|
|
- file_put_contents(runtime_path('logs/wxpay.log'), $res);
|
|
|
- $resArray = json_decode($res, true);
|
|
|
+ $data = $res->getContent();
|
|
|
+ if ($res->verify($data)){
|
|
|
+ dump(json_decode($data));
|
|
|
+ }else{
|
|
|
+ dump("验签失败");
|
|
|
+ }
|
|
|
+ $resArray = json_decode($data, true);
|
|
|
|
|
|
} else if ($payDetail->pay_prepayid == 'ALIPAY') {
|
|
|
// 退款
|