编辑文件 gold_list.go
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-03-19 17:47:44 +08:00
committed by cnb
parent 9cc29eec35
commit 91a20cb034

View File

@@ -43,7 +43,7 @@ func (c *GoldListController) DuihuanGold(ctx context.Context, req *DuihuanGoldAd
return
}
all := r.Rate * float64(r.ExchangeNum) * 100
all := r.Rate * float64(r.ExchangeNum)
if base.NewBaseSysUserService().GetFreeGold(t.UserId) < int64(all*105) {
err = fmt.Errorf("余额不足")
return