From 62a6d83dd5f4b30f39390f4c427f2a75d161388f Mon Sep 17 00:00:00 2001 From: weizong song Date: Thu, 2 Jan 2025 00:17:12 +0800 Subject: [PATCH] up --- app/Models/Refund.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Refund.php b/app/Models/Refund.php index 557de3c..0922639 100755 --- a/app/Models/Refund.php +++ b/app/Models/Refund.php @@ -41,7 +41,7 @@ class Refund extends SoftDeletesModel public function order() { - return $this->belongsTo(Orders::class); + return $this->hasOne(Orders::class,"id","order_id"); } public function patient() @@ -96,7 +96,7 @@ class Refund extends SoftDeletesModel public function weixinRefund() { $order = $this->order; - dump($this); + dump($order); $url = "https://api.mch.weixin.qq.com/secapi/pay/refund"; $CommonUtilPub = new \CommonUtilPub($order->project_id); $WxPayConfPub = new \WxPayConfPub($order->project_id);