From 1ab0e7d80b6316d7a5620daa06ad022030eb3215 Mon Sep 17 00:00:00 2001 From: itboyhan1 <154587375+itboyhan1@users.noreply.github.com> Date: Wed, 28 May 2025 19:44:03 +0800 Subject: [PATCH 01/18] Update model.go --- database/model/model.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/database/model/model.go b/database/model/model.go index 2e7095d3..452285c8 100644 --- a/database/model/model.go +++ b/database/model/model.go @@ -104,4 +104,6 @@ type Client struct { SubID string `json:"subId" form:"subId"` Comment string `json:"comment" form:"comment"` Reset int `json:"reset" form:"reset"` + MaxDevices int `json:"maxDevices" form:"maxDevices" gorm:"default:0"` // 新增:最大设备数量限制, 0表示不限制 + ActiveIPs string `json:"activeIPs" form:"activeIPs" gorm:"type:text"` // 新增:当前活动的IP列表 (JSON字符串) } From 2dee6f66f797f40f1d9c94ea20104a2193a3c407 Mon Sep 17 00:00:00 2001 From: itboyhan1 <154587375+itboyhan1@users.noreply.github.com> Date: Wed, 28 May 2025 19:46:14 +0800 Subject: [PATCH 02/18] Update client.html --- web/html/form/client.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/web/html/form/client.html b/web/html/form/client.html index c67f1470..6a971a23 100644 --- a/web/html/form/client.html +++ b/web/html/form/client.html @@ -83,6 +83,18 @@ + + + +