订单需管理员审核后才开通节点,并更新登录页文案。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-10 23:04:24 +08:00
parent 8b55b9cf55
commit f329f647c7
22 changed files with 583 additions and 81 deletions
+2
View File
@@ -51,6 +51,7 @@ def register_node(
sn: str,
purchase_amount: Decimal,
callback_url: str | None = None,
node_token: str | None = None,
) -> ComputeNode:
user = get_user_by_wallet(session, wallet_address.strip())
serial = sn.strip()
@@ -67,6 +68,7 @@ def register_node(
license_expires_at=add_months(started, settings.license_months),
status=NodeStatus.OFFLINE,
callback_url=callback,
node_token=node_token,
created_at=started,
updated_at=started,
)