From 84f1d08ff9e2fef2dbf8630b32828b558fdb1679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=83=E9=9A=A8=E7=B7=A3=E5=8B=95?= Date: Mon, 8 Sep 2025 22:40:51 +0800 Subject: [PATCH] v2.7.1 --- web/assets/js/model/inbound.js | 39 +--------------------------------- 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/web/assets/js/model/inbound.js b/web/assets/js/model/inbound.js index 3e154066..deb9b9cd 100644 --- a/web/assets/js/model/inbound.js +++ b/web/assets/js/model/inbound.js @@ -1812,25 +1812,6 @@ Inbound.VmessSettings.VMESS = class extends XrayCommonClass { this.updated_at = updated_at; } - // 【建议增加】为 VMESS 添加完整的 toJson 方法 - toJson() { - return { - id: this.id, - security: this.security, - email: this.email, - limitIp: this.limitIp, - speedLimit: this.speedLimit, // 中文注释: 序列化 speedLimit 字段 - totalGB: this.totalGB, - expiryTime: this.expiryTime, - enable: this.enable, - tgId: this.tgId, - subId: this.subId, - comment: this.comment, - reset: this.reset, - created_at: this.created_at, - updated_at: this.updated_at, - }; - } static fromJson(json = {}) { return new Inbound.VmessSettings.VMESS( @@ -1974,25 +1955,7 @@ Inbound.VLESSSettings.VLESS = class extends XrayCommonClass { this.updated_at = updated_at; } - // 【建议增加】为 VLESS 添加完整的 toJson 方法 - toJson() { - return { - id: this.id, - flow: this.flow, - email: this.email, - limitIp: this.limitIp, - speedLimit: this.speedLimit, // 中文注释: 序列化 speedLimit 字段 - totalGB: this.totalGB, - expiryTime: this.expiryTime, - enable: this.enable, - tgId: this.tgId, - subId: this.subId, - comment: this.comment, - reset: this.reset, - created_at: this.created_at, - updated_at: this.updated_at, - }; - } + static fromJson(json = {}) { return new Inbound.VLESSSettings.VLESS(