From 70017af4f84cfd3c74a07aefa85483085ead5fa5 Mon Sep 17 00:00:00 2001 From: weizong song Date: Wed, 1 Jan 2025 11:50:09 +0800 Subject: [PATCH] up --- app/Models/Orders.php | 5 +++++ app/Models/Recharge.php | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Models/Orders.php b/app/Models/Orders.php index 122747a..cbd24d0 100755 --- a/app/Models/Orders.php +++ b/app/Models/Orders.php @@ -200,6 +200,11 @@ class Orders extends SoftDeletesModel return $this->hasOneThrough(ParamedicLevel::class, ProductParamedicLevel::class, "id", "id", "product_paramedic_level_id", "paramedic_level_id"); } + public function wechatpayAccount() + { + return $this->hasOneThrough(WechatpayAccount::class, Orders::class, "id", "id", "order_id", "wechatpay_account_id"); + } + public function bed() { return $this->belongsTo(Bed::class); diff --git a/app/Models/Recharge.php b/app/Models/Recharge.php index 65ba983..5914f5b 100755 --- a/app/Models/Recharge.php +++ b/app/Models/Recharge.php @@ -44,11 +44,6 @@ class Recharge extends SoftDeletesModel return $this->belongsTo(Orders::class); } - public function wechatpayAccount() - { - return $this->hasOneThrough(WechatpayAccount::class, Orders::class, "id", "id", "order_id", "wechatpay_account_id"); - } - public function patient() { return $this->hasOneThrough(Patient::class, Orders::class, "id", "id", "order_id", "patient_id");