🐛 遗漏的代码
This commit is contained in:
@@ -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)
|
||||
|
||||
// 清空旧系统积分
|
||||
|
||||
Reference in New Issue
Block a user