fix(postcards): remove card number format restriction and forced uppercase

This commit is contained in:
2026-07-06 23:14:12 +08:00
parent 87785494d6
commit 14c226d082
2 changed files with 4 additions and 4 deletions

View File

@@ -572,7 +572,7 @@ def postcard_create(
pc = Postcard(
profile_id=profile_id,
card_number=card_number.strip().upper(),
card_number=card_number.strip(),
status=status,
recipient_name=recipient_name or None,
country=(country.strip().upper() if country else None),
@@ -650,7 +650,7 @@ def postcard_update(
except ValueError:
return None
pc.card_number = card_number.strip().upper()
pc.card_number = card_number.strip()
pc.status = status
pc.recipient_name = recipient_name or None
pc.country = country or None