京东商城出库
This commit is contained in:
@@ -172,20 +172,25 @@ func result2Orders(msg *jdshopapi.CallBackResult) (order *model.GoodsOrder, err
|
|||||||
if math.Mod(float64(len(order.Skus)), float64(2)) == 0 {
|
if math.Mod(float64(len(order.Skus)), float64(2)) == 0 {
|
||||||
if saleNormalSum < len(order.Skus)/2 {
|
if saleNormalSum < len(order.Skus)/2 {
|
||||||
buildOrderTo102919(order)
|
buildOrderTo102919(order)
|
||||||
|
continue
|
||||||
} else {
|
} else {
|
||||||
if order.EarningType == model.EarningTypeQuote && shopPriceSum+700 > int(order.TotalShopMoney) {
|
if order.EarningType == model.EarningTypeQuote && shopPriceSum+700 > int(order.TotalShopMoney) {
|
||||||
buildOrderTo102919(order)
|
buildOrderTo102919(order)
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if saleNormalSum <= len(order.Skus)/2 {
|
if saleNormalSum <= len(order.Skus)/2 {
|
||||||
buildOrderTo102919(order)
|
buildOrderTo102919(order)
|
||||||
|
continue
|
||||||
} else {
|
} else {
|
||||||
if order.EarningType == model.EarningTypeQuote && shopPriceSum+700 > int(order.TotalShopMoney) {
|
if order.EarningType == model.EarningTypeQuote && shopPriceSum+700 > int(order.TotalShopMoney) {
|
||||||
buildOrderTo102919(order)
|
buildOrderTo102919(order)
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
break
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
buildOrderTo102919(order)
|
buildOrderTo102919(order)
|
||||||
|
|||||||
Reference in New Issue
Block a user