This commit is contained in:
huangzhenpc
2025-05-17 18:16:24 +08:00
parent 753ea21977
commit 2d603c33aa
32 changed files with 2114 additions and 96 deletions

View File

@@ -400,7 +400,7 @@ def activate_device(machine_id: str, activation_code: str) -> Tuple[bool, str, O
return True, f"激活成功,剩余{state_data['days_left']}", state_data
elif result.get("code") == 400:
error_msg = result.get("msg", "激活码无效或已被使用")
error_msg = result.get("msg", "激活码已使用完,请勿重复使用")
_logger.warning(f"激活失败: {error_msg}")
return False, error_msg, None