Files
hi-server/internal/logic/admin/user
shanshanzhong147 6d9263ceef fix: guard RefererId and monetary fields against zero-value overwrite in updateUserBasicInfo
- Change RefererId, Balance, GiftAmount, Commission from int64 to *int64 in UpdateUserBasiceInfoRequest
- When field is nil (not sent by client), skip update entirely — prevents zero-value from clobbering existing data
- When field is non-nil, dereference and apply as before (including explicit 0 to clear a value)
- Mirrors the existing guard pattern already used for Avatar, ReferCode, Enable, IsAdmin, etc.

Fixes: RefererId unconditional overwrite at line 123 (P02)
Fixes: Balance/GiftAmount/Commission triggering adjustment to 0 when omitted (P03)
Co-authored-by: multica-agent <github@multica.ai>
2026-05-25 19:52:28 -07:00
..
2026-05-19 19:35:44 -07:00
2026-03-08 23:22:38 +08:00
2026-03-08 21:57:20 -07:00
2026-03-17 09:12:56 -07:00
2026-03-17 09:12:56 -07:00
2026-03-17 09:12:56 -07:00
2026-05-19 19:35:44 -07:00
2026-05-19 19:35:44 -07:00
2025-08-15 12:30:21 -04:00
2026-05-19 19:35:44 -07:00