优化激活码生成逻辑
This commit is contained in:
@@ -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
Reference in New Issue
Block a user