Implement dark mode, bug report page, and schema dump

This commit is contained in:
2025-11-27 15:06:45 +08:00
parent 13bc6db529
commit 83602b1ed1
91 changed files with 1078 additions and 2291 deletions

View File

@@ -144,7 +144,7 @@ class MembershipPayment extends Model
{
return match($this->payment_method) {
self::METHOD_BANK_TRANSFER => '銀行轉帳',
self::METHOD_CONVENIENCE_STORE => '便利商店繳費',
self::METHOD_CONVENIENCE_STORE => '超商繳費',
self::METHOD_CASH => '現金',
self::METHOD_CREDIT_CARD => '信用卡',
default => $this->payment_method ?? '未指定',
@@ -157,10 +157,9 @@ class MembershipPayment extends Model
parent::boot();
static::deleting(function ($payment) {
if ($payment->receipt_path && Storage::exists($payment->receipt_path)) {
Storage::delete($payment->receipt_path);
if ($payment->receipt_path && Storage::disk('private')->exists($payment->receipt_path)) {
Storage::disk('private')->delete($payment->receipt_path);
}
});
}
}