🐛 遗漏的代码

This commit is contained in:
sugarBecomer
2025-11-25 19:01:43 +08:00
parent 644ceed436
commit ac93a5385e
@@ -364,6 +364,8 @@ func (s *UserInfoServiceV1) BalanceMigrate(ctx context.Context, req *v1.BalanceM
if newUser.Edges.Agent != nil {
b = utils.TransformBalance(b, newUser.Edges.Agent.Rate)
}
// 缩小5倍,新系统按1:1比例的 老系统是1:5
b = b.Div(decimal.NewFromInt32(5))
balance.BalanceService.ChangeUserBalance(ctx, newUser.ID, b)
// 清空旧系统积分