|
|
|
|
@ -96,10 +96,10 @@ class Refund extends SoftDeletesModel
|
|
|
|
|
public function weixinRefund()
|
|
|
|
|
{
|
|
|
|
|
$order = $this->order;
|
|
|
|
|
dump($order);
|
|
|
|
|
$url = "https://api.mch.weixin.qq.com/secapi/pay/refund";
|
|
|
|
|
$CommonUtilPub = new \CommonUtilPub($order->project_id);
|
|
|
|
|
$WxPayConfPub = new \WxPayConfPub($order->project_id);
|
|
|
|
|
dump($WxPayConfPub);
|
|
|
|
|
$inputObj = [];
|
|
|
|
|
$inputObj["transaction_id"] = $this->relatedRecharge->payment_serial;
|
|
|
|
|
$inputObj["out_refund_no"] = $this->serial;
|
|
|
|
|
@ -129,7 +129,7 @@ class Refund extends SoftDeletesModel
|
|
|
|
|
$this->decrement("try_times");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
dump($this->toArray(),$inputObj,$result);
|
|
|
|
|
dump($result);
|
|
|
|
|
} catch (\Exception $exception) {
|
|
|
|
|
$msg = "在线退款失败,原因:" . $exception->getMessage();
|
|
|
|
|
Log::info($msg);
|
|
|
|
|
|