From 89e24812c8549d0a7634f74825c1e676782d677a Mon Sep 17 00:00:00 2001 From: xuanchen <122383162@qq.com> Date: Wed, 19 Jan 2022 13:16:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Log.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Log.php b/app/Models/Log.php index e462cb4..890299c 100644 --- a/app/Models/Log.php +++ b/app/Models/Log.php @@ -94,6 +94,6 @@ class Log extends Model */ public function coupons(): HasMany { - return $this->hasMany(Coupon::class, 'redemptionCode', 'coupon_no')->where('status', 2); + return $this->hasMany(Coupon::class, 'redemptionCode', 'coupon_no'); } }