From bd3ee71c8874f7e3abf23f9c50f4977cb86c82d0 Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Mon, 15 Sep 2025 15:59:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Visit.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/Visit.php b/app/Models/Visit.php index 4093b74..dd1c261 100644 --- a/app/Models/Visit.php +++ b/app/Models/Visit.php @@ -78,6 +78,11 @@ class Visit extends SoftDeletesModel return $this->belongsTo(Admin::class, 'accept_admin_id'); } + public function admin() + { + return $this->belongsTo(Admin::class, 'admin_id'); + } + /** * 关联收货人 */