fix: 修复汇率校验逻辑错误
This commit is contained in:
@@ -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"]) > 1。0 {
|
||||
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})
|
||||
|
||||
Reference in New Issue
Block a user