优化激活码生成逻辑
This commit is contained in:
@@ -1,11 +1,13 @@
|
|||||||
# generate_activation_code.py
|
# generate_activation_code.py
|
||||||
import uuid
|
import uuid
|
||||||
import random # For date-based index generation
|
import random # For date-based index generation
|
||||||
|
from datetime import date
|
||||||
|
|
||||||
# --- Seed Date Configuration (MUST MATCH THE ONE IN THE MAIN APP) ---
|
# --- Seed Date Configuration (MUST MATCH THE ONE IN THE MAIN APP) ---
|
||||||
SEED_YEAR = 2025
|
current_date = date.today()
|
||||||
SEED_MONTH = 5
|
SEED_YEAR = current_date.year
|
||||||
SEED_DAY = 18
|
SEED_MONTH = current_date.month
|
||||||
|
SEED_DAY = current_date.day
|
||||||
# ---------------------------------------------------------------------
|
# ---------------------------------------------------------------------
|
||||||
|
|
||||||
# --- New Configuration ---
|
# --- New Configuration ---
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user