Issue invite configs as subscription URLs with redeem-based lifetime.

Admin picks inbound once, sets duration in days from Get config, and configures the 3x-ui /sub base URL.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
orohi
2026-07-26 01:34:40 +03:00
co-authored by Cursor
parent 7b3d8aac34
commit 7d7094bc38
13 changed files with 347 additions and 148 deletions
+16
View File
@@ -213,6 +213,20 @@
"invite_user_required": "请选择用户",
"invite_password_label": "密码(可选)",
"invite_expires_label": "过期时间(可选)",
"invite_duration_label": "配置有效期(天)",
"invite_duration_hint": "从用户点击获取配置时开始计时。0 = 不过期。",
"invite_duration_short": "有效期",
"invite_duration_starts_hint": "获取后配置将有效 {} 天",
"invite_config_expires_at": "配置有效至:{}",
"invite_inbound_hint": "一次性选择所需的 VLESS 入站",
"invite_inbound_loading": "加载入站中…",
"invite_inbound_empty": "未找到 VLESS 入站",
"invite_inbound_need_xui": "请先在设置中配置 3x-ui",
"invite_inbound_required": "请选择 VLESS 入站",
"invite_sub_url_missing_title": "未设置订阅 URL",
"invite_sub_url_missing_hint": "在 设置 → 3x-ui 中填写订阅基础 URL,以便发放 /sub/… 配置。",
"invite_sub_tab": "订阅",
"days_short": "天",
"invite_clear_expires": "清除过期时间",
"invite_note_label": "备注(仅管理员)",
"invite_note_placeholder": "内部备注",
@@ -275,6 +289,8 @@
"sync_hint": "将根据 Remnawave 数据自动创建、禁用和删除用户",
"xui_url_label": "3x-ui 地址",
"xui_url_hint": "包含协议、端口和 webBasePath(如有)",
"xui_sub_url_label": "订阅基础 URL",
"xui_sub_url_hint": "公共 /sub 基础地址,末尾不要斜杠(如 https://host:2096/sub)。",
"xui_api_token_label": "API Token(推荐)",
"xui_api_token_placeholder": "Settings → Security → API Token",
"xui_api_token_hint": "若已设置,将跳过用户名/密码登录",