Pārlūkot izejas kodu

test

tags/v4.3.1
huangjiajun pirms 1 gada
vecāks
revīzija
4e671dd6d6
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      rule/self_buy_global.go

+ 1
- 1
rule/self_buy_global.go Parādīt failu

@@ -50,7 +50,7 @@ func AddOrder(eg *xorm.Engine, req map[string]string) {
}
nowMoney := leave + price*capitalPoolMul
nowNum := int(nowMoney / onemoney)
max.Num += nowNum
max.Num = nowNum
max.LeavePrice = zhios_order_relate_utils.Float64ToStrByPrec(zhios_order_relate_utils.StrToFloat64(max.LeavePrice)+zhios_order_relate_utils.StrToFloat64(req["price"]), 3)
max.OtherPrice = zhios_order_relate_utils.Float64ToStrByPrec(zhios_order_relate_utils.StrToFloat64(max.OtherPrice)+zhios_order_relate_utils.StrToFloat64(req["price"]), 3)
max.UpdateTime = time.Now()


Notiek ielāde…
Atcelt
Saglabāt