weizong song 1 year ago
parent 5e49562efc
commit 62a6d83dd5

@ -41,7 +41,7 @@ class Refund extends SoftDeletesModel
public function order() public function order()
{ {
return $this->belongsTo(Orders::class); return $this->hasOne(Orders::class,"id","order_id");
} }
public function patient() public function patient()
@ -96,7 +96,7 @@ class Refund extends SoftDeletesModel
public function weixinRefund() public function weixinRefund()
{ {
$order = $this->order; $order = $this->order;
dump($this); dump($order);
$url = "https://api.mch.weixin.qq.com/secapi/pay/refund"; $url = "https://api.mch.weixin.qq.com/secapi/pay/refund";
$CommonUtilPub = new \CommonUtilPub($order->project_id); $CommonUtilPub = new \CommonUtilPub($order->project_id);
$WxPayConfPub = new \WxPayConfPub($order->project_id); $WxPayConfPub = new \WxPayConfPub($order->project_id);

Loading…
Cancel
Save