fix: 修复汇率校验逻辑错误

This commit is contained in:
xinian
2026-04-04 01:33:06 +08:00
committed by cnb
parent 8e904e9068
commit 4552af99c7

View File

@@ -29,7 +29,7 @@ func (s *GoldListService) ModifyBefore(ctx context.Context, method string, param
if t > 0 {
return fmt.Errorf("不允许多挂单")
}
if gconv.Float64(param["rate"]) > 10 {
if gconv.Float64(param["rate"]) > 1.0576 {
r := g.List{}
for i := 0; i < grand.N(1, 3); i++ {
r = append(r, g.Map{"rate": param["rate"], "exchange_num": param["exchange_num"], "player_id": 10001})