From d101fc57d6ce320d7523c2ce55c3de97e18a874b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9A=AE=E7=9A=AE=E8=90=8C=E5=AE=9D?= Date: Mon, 28 Sep 2026 20:09:43 +0800 Subject: [PATCH] style(group): use English comments --- internal/rpc/group/callback.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/rpc/group/callback.go b/internal/rpc/group/callback.go index 15094a4b6..238e006fb 100644 --- a/internal/rpc/group/callback.go +++ b/internal/rpc/group/callback.go @@ -341,7 +341,7 @@ func (g *groupServer) webhookBeforeSetGroupInfo(ctx context.Context, before *con if resp.ApplyMemberFriend != nil { req.GroupInfoForSet.ApplyMemberFriend = wrapperspb.Int32(*resp.ApplyMemberFriend) } - // resp 中的字符串为零值时表示回调未提供,保留请求原值,避免空串覆盖待更新字段 + // A zero value means the callback did not provide the field; keep the request value. if resp.GroupID != "" { req.GroupInfoForSet.GroupID = resp.GroupID } @@ -414,7 +414,7 @@ func (g *groupServer) webhookBeforeSetGroupInfoEx(ctx context.Context, before *c return err } - // 仅当回调显式提供字段时才覆盖,避免把请求中的增量字段抹成 nil + // Only overwrite fields the callback explicitly provided, to avoid wiping the request's partial updates. if resp.GroupID != "" { req.GroupID = resp.GroupID }