fix: gift card redemption limits validation

This commit is contained in:
xboard
2025-07-21 09:28:00 +08:00
parent 61773a13b4
commit 768e14bdb9
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ class GiftCardCode extends Model
public function isAvailable(): bool
{
// 检查状态
if ($this->status !== self::STATUS_UNUSED) {
if (in_array($this->status, [self::STATUS_EXPIRED, self::STATUS_DISABLED])) {
return false;
}