|
|
@@ -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{ |
|
|
|