Files
hi-server/internal/logic/admin
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-03-06 21:58:29 -08:00
2026-03-05 02:13:28 -08:00
2026-03-03 09:32:22 -08:00
x
2026-03-08 22:37:58 -07:00
2026-01-06 16:24:24 +08:00
x
2026-04-04 11:46:06 -07:00