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
shanshanzhong147
fd522b6c71
path
Build docker and publish / build (20.15.1) (push) Successful in 8m56s
2026-05-19 19:35:44 -07:00
shanshanzhong147
7d2f98b7c9
fix: 修复管理员更新用户信息时意外覆盖字段的问题
...
Build docker and publish / build (20.15.1) (push) Has been cancelled
- Enable/IsAdmin/OnlyFirstPurchase 改为 *bool,未传时不更新
- Avatar/Remark/ReferCode/ReferralPercentage 加空值保护
- getDeviceList: 恢复 hifastday@hifast.com 家庭成员受限逻辑
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-07 02:21:35 -07:00
shanshanzhong147
595e4c62f9
x
Build docker and publish / build (20.15.1) (push) Successful in 5m25s
2026-05-03 18:34:14 -07:00
shanshanzhong147
4d8516b2e1
同步历史版本代码
2026-03-03 09:32:22 -08:00
Chang lue Tsen
8562734fde
feat(user): add encryption algorithm and salt fields to User model for migrate
2025-10-09 13:33:03 -04:00
Chang lue Tsen
6460f2f2e1
fix(user): correct placement of DeepCopy for user info update logic
2025-09-05 11:14:38 -04:00
Chang lue Tsen
0199dc7fa2
feat(log): add logging for balance, gift amount, and commission adjustments
2025-09-05 11:00:19 -04:00
Chang lue Tsen
aea20ffd5e
feat(api): add referral percentage and only first purchase fields to user model and requests
2025-09-01 09:03:39 -04:00
Chang lue Tsen
e279119524
fix(user): update user balance, gift amount, and commission fields in user info
2025-07-07 12:11:59 -04:00
Chang lue Tsen
0825ac525d
fix(user): prevent deletion and password modification of admin user in demo mode
2025-07-02 12:39:30 -04:00
Chang lue Tsen
34c09c4618
refactor: update import paths from ppanel-server to server
2025-04-25 15:09:31 +09:00
Chang lue Tsen
8addcc584b
init: 1.0.0
2025-04-25 12:08:29 +09:00