fix: gift card redemption limits validation
This commit is contained in:
1 parent
1493fe18eb
commit
b3a69bcd60
2 files changed
+6
-6
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user