🐛 充值bug

This commit is contained in:
sugarBecomer
2025-11-03 20:42:45 +08:00
parent 2c0026267e
commit f1dfa61578
@@ -17,9 +17,6 @@ type BalanceServiceV1 struct {
}
func (v *BalanceServiceV1) ChangeUserBalance(ctx context.Context, userId int64, balance decimal.Decimal) {
if utils.IsAdminFromCtx(ctx) {
return
}
tx, err := db.Global.Tx(ctx)
utils.OkOrPanic(err, oops.WithContext(ctx).Wrap)
defer tx.Rollback()