From de2f0983097385a9f6ae55c512a61c50b41c046e Mon Sep 17 00:00:00 2001 From: sky121113 Date: Wed, 24 Jun 2026 16:03:01 +0800 Subject: [PATCH] =?UTF-8?q?[FIX]=20=E5=8F=96=E8=B2=A8=E7=A2=BC=E7=84=A1?= =?UTF-8?q?=E6=B3=95=E5=88=AA=E9=99=A4=EF=BC=9Astatus=20=E6=9C=AA=E5=88=97?= =?UTF-8?q?=E5=85=A5=20fillable=20=E5=B0=8E=E8=87=B4=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E7=84=A1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. PickupCode $fillable 補上 status,原本 destroyPickupCode 的 update(['status'=>'cancelled']) 因 mass-assignment 保護被靜默忽略,導致取貨碼按刪除(取消)後狀態不變、永遠刪不掉(超級管理員亦然) 2. PassCode/WelcomeGift 的 fillable 本就含 status 不受影響,故僅取貨碼有此問題 Co-Authored-By: Claude Opus 4.8 (1M context) --- app/Models/Transaction/PickupCode.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Models/Transaction/PickupCode.php b/app/Models/Transaction/PickupCode.php index f8b3bc4..d4cee37 100644 --- a/app/Models/Transaction/PickupCode.php +++ b/app/Models/Transaction/PickupCode.php @@ -18,6 +18,7 @@ class PickupCode extends Model 'slot_no', 'code', 'slug', + 'status', 'expires_at', 'used_at', 'usage_limit',