优化激活码生成逻辑

This commit is contained in:
2025-05-18 23:37:07 +08:00
parent fbac9d8019
commit 817b241f98
2 changed files with 278 additions and 560 deletions

View File

@@ -1,11 +1,13 @@
# generate_activation_code.py
import uuid
import random # For date-based index generation
from datetime import date
# --- Seed Date Configuration (MUST MATCH THE ONE IN THE MAIN APP) ---
SEED_YEAR = 2025
SEED_MONTH = 5
SEED_DAY = 18
current_date = date.today()
SEED_YEAR = current_date.year
SEED_MONTH = current_date.month
SEED_DAY = current_date.day
# ---------------------------------------------------------------------
# --- New Configuration ---

File diff suppressed because it is too large Load Diff