diff --git a/app/Models/Orders.php b/app/Models/Orders.php index 4e35e57..3a2e799 100755 --- a/app/Models/Orders.php +++ b/app/Models/Orders.php @@ -202,7 +202,7 @@ class Orders extends SoftDeletesModel public function wechatpayAccount() { - return $this->hasOneThrough(WechatpayAccount::class, Project::class, "id", "id", "order_id", "wechatpay_account_id"); + return $this->hasOneThrough(WechatpayAccount::class, Project::class, "id", "id", "project_id", "wechatpay_account_id"); } public function bed()