超12小时自动审核售后单
This commit is contained in:
@@ -287,9 +287,9 @@ func Init() {
|
|||||||
"04:05:06",
|
"04:05:06",
|
||||||
})
|
})
|
||||||
//京东的订单信息解密密钥获取
|
//京东的订单信息解密密钥获取
|
||||||
// ScheduleTimerFuncByInterval(func() {
|
ScheduleTimerFuncByInterval(func() {
|
||||||
// jdshop.InitKey()
|
jdshop.InitKey()
|
||||||
// }, 10*time.Second, 8*time.Hour)
|
}, 10*time.Second, 8*time.Hour)
|
||||||
ScheduleTimerFunc("ChangeJxPriceByDiscountAct", func() {
|
ScheduleTimerFunc("ChangeJxPriceByDiscountAct", func() {
|
||||||
act.ChangeJxPriceByDiscountAct(jxcontext.AdminCtx)
|
act.ChangeJxPriceByDiscountAct(jxcontext.AdminCtx)
|
||||||
}, discountActJxList)
|
}, discountActJxList)
|
||||||
|
|||||||
@@ -137,24 +137,29 @@ func result2Orders(msg *jdshopapi.CallBackResult) (order *model.GoodsOrder, err
|
|||||||
return order, err
|
return order, err
|
||||||
}
|
}
|
||||||
if len(storeList) > 0 {
|
if len(storeList) > 0 {
|
||||||
order.StoreID = storeList[0].ID
|
for _, store := range storeList {
|
||||||
order.JxStoreID = storeList[0].ID
|
order.StoreID = store.ID
|
||||||
order.StoreName = storeList[0].Name
|
order.JxStoreID = store.ID
|
||||||
globals.SugarLogger.Debugf("jds GetStoreListByLocation, orderID: %v storeID :%v", order.VendorOrderID, order.StoreID)
|
order.StoreName = store.Name
|
||||||
//结算类型
|
globals.SugarLogger.Debugf("jds GetStoreListByLocation, orderID: %v storeID :%v", order.VendorOrderID, order.StoreID)
|
||||||
storeDetail, _ := dao.GetStoreDetail(dao.GetDB(), order.StoreID, model.VendorIDJDShop)
|
//结算类型
|
||||||
if storeDetail != nil {
|
storeDetail, _ := dao.GetStoreDetail(dao.GetDB(), order.StoreID, model.VendorIDJDShop)
|
||||||
if storeDetail.PayPercentage < 50 {
|
if storeDetail != nil {
|
||||||
order.EarningType = model.EarningTypePoints
|
if storeDetail.PayPercentage < 50 {
|
||||||
} else {
|
order.EarningType = model.EarningTypePoints
|
||||||
order.EarningType = model.EarningTypeQuote
|
} else {
|
||||||
|
order.EarningType = model.EarningTypeQuote
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
if order.EarningType == model.EarningTypeQuote {
|
||||||
if order.EarningType == model.EarningTypeQuote {
|
var shopPriceSum int
|
||||||
var shopPriceSum int
|
storeSkuList, _ := dao.GetStoresSkusInfo(dao.GetDB(), []int{order.StoreID}, skuIDs)
|
||||||
storeSkuList, _ := dao.GetStoresSkusInfo(dao.GetDB(), []int{order.StoreID}, skuIDs)
|
for _, storeSku := range storeSkuList {
|
||||||
for _, storeSku := range storeSkuList {
|
shopPriceSum += storeSku.Price
|
||||||
shopPriceSum += storeSku.Price
|
}
|
||||||
|
if shopPriceSum+700 > order.TotalShopMoney {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user