物料分包测试
This commit is contained in:
@@ -217,7 +217,6 @@ func CreateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64,
|
||||
checkMatterDeliveryAddress(deliveryAddress)
|
||||
}
|
||||
if createType != OrderCreateTypePre {
|
||||
fmt.Println("test1", utils.Format4Output(outJxOrder, false))
|
||||
if outJxOrder.TotalPrice != jxOrder.TotalPrice {
|
||||
return nil, fmt.Errorf("商品或配送信息发生改变,请重新下单")
|
||||
}
|
||||
@@ -1548,6 +1547,7 @@ func tryToSplitMatterOrder(jxOrder *JxOrderInfo) (outOrders []*JxOrderInfo, frei
|
||||
freightPrice += utils.Float64TwoInt64(500 + math.Ceil((utils.Int2Float64(v.Weight)-3000)/1000)*200)
|
||||
}
|
||||
}
|
||||
globals.SugarLogger.Debugf("outOrders", utils.Format4Output(outOrders, false))
|
||||
return outOrders, freightPrice, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user