aa
This commit is contained in:
@@ -314,7 +314,7 @@ func result2Orders(msg *jdshopapi.CallBackResult) (order *model.GoodsOrder, err
|
||||
if order.ExpectedDeliveredTime.Sub(order.OrderCreatedAt) <= time.Hour+time.Minute {
|
||||
order.BusinessType = model.BusinessTypeImmediate
|
||||
}
|
||||
buildOrderTo102919(order)
|
||||
// buildOrderTo102919(order)
|
||||
return order, err
|
||||
}
|
||||
|
||||
|
||||
@@ -47,6 +47,14 @@ func getAPI(appOrgCode string) (apiObj *jdshopapi.API) {
|
||||
return apiObj
|
||||
}
|
||||
|
||||
func GetAPI(appOrgCode string) (apiObj *jdshopapi.API) {
|
||||
apiObj = partner.CurAPIManager.GetAPI(model.VendorIDJDShop, appOrgCode).(*jdshopapi.API)
|
||||
if configs, err := dao.QueryConfigs(dao.GetDB(), "jdsCookie2", model.ConfigTypeCookie, ""); err == nil {
|
||||
apiObj.SetCookieWithStr(configs[0].Value)
|
||||
}
|
||||
return apiObj
|
||||
}
|
||||
|
||||
func (p *PurchaseHandler) GetVendorID() int {
|
||||
return model.VendorIDJDShop
|
||||
}
|
||||
|
||||
@@ -157,7 +157,7 @@ func (p *PurchaseHandler) AdjustOrder(ctx *jxcontext.Context, order *model.Goods
|
||||
}
|
||||
|
||||
func (p *PurchaseHandler) GetJdsOrders(ctx *jxcontext.Context, orderCreatedStart, orderCreatedEnd string, current, pageSize int) (orderResult *jdshopapi.AllOrdersResult, err error) {
|
||||
orderResult, err = api.JdShopAPI.AllOrders(&jdshopapi.AllOrdersParam{
|
||||
orderResult, err = getAPI("2").AllOrders(&jdshopapi.AllOrdersParam{
|
||||
Current: current,
|
||||
PageSize: pageSize,
|
||||
OrderCreateDateRange: []string{orderCreatedStart, orderCreatedEnd},
|
||||
|
||||
Reference in New Issue
Block a user