京东商城规则修改
This commit is contained in:
@@ -163,8 +163,10 @@ func result2Orders(msg *jdshopapi.CallBackResult) (order *model.GoodsOrder, err
|
|||||||
)
|
)
|
||||||
for _, sku := range order.Skus {
|
for _, sku := range order.Skus {
|
||||||
storeSkuList, _ := dao.GetStoresSkusInfo(dao.GetDB(), []int{order.StoreID}, []int{sku.SkuID})
|
storeSkuList, _ := dao.GetStoresSkusInfo(dao.GetDB(), []int{order.StoreID}, []int{sku.SkuID})
|
||||||
if len(storeSkuList) > 0 && storeSkuList[0].Status == model.StoreSkuBindStatusNormal {
|
if len(storeSkuList) > 0 {
|
||||||
saleNormalSum += 1
|
if storeSkuList[0].Status == model.StoreSkuBindStatusNormal {
|
||||||
|
saleNormalSum += 1
|
||||||
|
}
|
||||||
shopPriceSum += storeSkuList[0].Price * sku.Count
|
shopPriceSum += storeSkuList[0].Price * sku.Count
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -174,7 +176,7 @@ func result2Orders(msg *jdshopapi.CallBackResult) (order *model.GoodsOrder, err
|
|||||||
buildOrderTo102919(order)
|
buildOrderTo102919(order)
|
||||||
continue
|
continue
|
||||||
} else {
|
} else {
|
||||||
if order.EarningType == model.EarningTypeQuote && utils.Int2Float64(shopPriceSum+700) > float64(order.TotalShopMoney)*jdshopapi.JdsPayPercentage {
|
if order.EarningType == model.EarningTypeQuote && shopPriceSum+700 > int(order.TotalShopMoney) {
|
||||||
buildOrderTo102919(order)
|
buildOrderTo102919(order)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@@ -184,7 +186,7 @@ func result2Orders(msg *jdshopapi.CallBackResult) (order *model.GoodsOrder, err
|
|||||||
buildOrderTo102919(order)
|
buildOrderTo102919(order)
|
||||||
continue
|
continue
|
||||||
} else {
|
} else {
|
||||||
if order.EarningType == model.EarningTypeQuote && utils.Int2Float64(shopPriceSum+700) > float64(order.TotalShopMoney)*jdshopapi.JdsPayPercentage {
|
if order.EarningType == model.EarningTypeQuote && shopPriceSum+700 > int(order.TotalShopMoney) {
|
||||||
buildOrderTo102919(order)
|
buildOrderTo102919(order)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user