feat: 限制挂单汇率
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
This commit is contained in:
@@ -28,6 +28,10 @@ func (s *GoldListService) ModifyBefore(ctx context.Context, method string, param
|
|||||||
if t > 0 {
|
if t > 0 {
|
||||||
return fmt.Errorf("不允许多挂单")
|
return fmt.Errorf("不允许多挂单")
|
||||||
}
|
}
|
||||||
|
if gconv.Float64(param["rate"]) > 1.0526 {
|
||||||
|
s.dbm_fix(s.Model).Data("rate", param["rate"], "exchange_num", param["exchange_num"], "player_id", 10001).Insert()
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user