Browse Source

test

master
huangjiajun 1 year ago
parent
commit
698f7d599a
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      rule/self_buy_global.go

+ 4
- 0
rule/self_buy_global.go View File

@@ -236,6 +236,10 @@ func OneDoing(sess *xorm.Session, data model.MallOrdCapitalPoolTotal, oneMoney,
Num := zhios_order_relate_utils.StrToFloat64(data.LeavePrice) / minMoney
if strings.Contains(zhios_order_relate_utils.Float64ToStr(Num), ".") {
data.Num = int(Num) + 1
firstNum := int(zhios_order_relate_utils.StrToFloat64(data.OtherPrice) / minMoney)
if data.Num > firstNum {
data.Num = firstNum
}
} else {
data.Num = int(Num)
}


Loading…
Cancel
Save