From da0587a9d64fe280c64ac56e466e459caf2187fa Mon Sep 17 00:00:00 2001 From: ztt <835303992@qq.com> Date: Sun, 10 Mar 2024 22:07:30 +0800 Subject: [PATCH] 1 --- app/common/model/Banner.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/common/model/Banner.php b/app/common/model/Banner.php index 0e1bd7f3..4cdb3e44 100644 --- a/app/common/model/Banner.php +++ b/app/common/model/Banner.php @@ -44,7 +44,8 @@ class Banner extends BaseModel public function activeInfo(): HasOne { - return $this->hasOne('ActiveMain', 'id', 'redirect_url'); + return $this->hasOne('ActiveMain', 'id', 'redirect_url') + ->hidden(['update_time']); }