超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,9 +137,10 @@ 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
|
||||||
|
order.StoreName = store.Name
|
||||||
globals.SugarLogger.Debugf("jds GetStoreListByLocation, orderID: %v storeID :%v", order.VendorOrderID, order.StoreID)
|
globals.SugarLogger.Debugf("jds GetStoreListByLocation, orderID: %v storeID :%v", order.VendorOrderID, order.StoreID)
|
||||||
//结算类型
|
//结算类型
|
||||||
storeDetail, _ := dao.GetStoreDetail(dao.GetDB(), order.StoreID, model.VendorIDJDShop)
|
storeDetail, _ := dao.GetStoreDetail(dao.GetDB(), order.StoreID, model.VendorIDJDShop)
|
||||||
@@ -156,6 +157,10 @@ func result2Orders(msg *jdshopapi.CallBackResult) (order *model.GoodsOrder, err
|
|||||||
for _, storeSku := range storeSkuList {
|
for _, storeSku := range storeSkuList {
|
||||||
shopPriceSum += storeSku.Price
|
shopPriceSum += storeSku.Price
|
||||||
}
|
}
|
||||||
|
if shopPriceSum+700 > order.TotalShopMoney {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
order.StoreID = 102919
|
order.StoreID = 102919
|
||||||
|
|||||||
Reference in New Issue
Block a user