瀏覽代碼

test

tags/v4.3.1
huangjiajun 1 年之前
父節點
當前提交
e8a5299457
共有 1 個檔案被更改,包括 6 行新增0 行删除
  1. +6
    -0
      rule/self_buy_global.go

+ 6
- 0
rule/self_buy_global.go 查看文件

@@ -13,6 +13,12 @@ import (

func AddOrder(eg *xorm.Engine, req map[string]string) {
max := db.GetMaxPrice(eg, req["uid"])
one, _ := db.SysCfgGetOne(eg, "capital_pool_mul")
var capitalPoolMul float64 = 0
if one != nil {
capitalPoolMul = zhios_order_relate_utils.StrToFloat64(one.Val)
}
req["price"] = zhios_order_relate_utils.Float64ToStrByPrec(zhios_order_relate_utils.StrToFloat64(req["price"])*capitalPoolMul, 2)
if req["type"] == "mall_goods_user_lv" {
for i := 0; i < zhios_order_relate_utils.StrToInt(req["num"]); i++ {
var data = &model.MallOrdCapitalPoolTotal{


Loading…
取消
儲存