From 2c0ee7cbfe5754c8be743ae38f2b1d443fcaae81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=83=E9=9A=A8=E7=B7=A3=E5=8B=95?= Date: Tue, 26 Aug 2025 15:44:14 +0800 Subject: [PATCH] v2.6.7 --- web/service/inbound.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/service/inbound.go b/web/service/inbound.go index 6e10e798..37a44f17 100644 --- a/web/service/inbound.go +++ b/web/service/inbound.go @@ -326,6 +326,8 @@ func (s *InboundService) UpdateInbound(inbound *model.Inbound) (*model.Inbound, oldInbound.Remark = inbound.Remark oldInbound.Enable = inbound.Enable oldInbound.ExpiryTime = inbound.ExpiryTime + // 中文注释:确保在更新数据时,将前端传来的 deviceLimit 值赋给从数据库中读出的旧对象。 + oldInbound.DeviceLimit = inbound.DeviceLimit oldInbound.Listen = inbound.Listen oldInbound.Port = inbound.Port oldInbound.Protocol = inbound.Protocol