aa
This commit is contained in:
@@ -569,8 +569,8 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa
|
|||||||
pageSize = jxutils.FormalizePageSize(pageSize)
|
pageSize = jxutils.FormalizePageSize(pageSize)
|
||||||
sqlParams = append(sqlParams, pageSize, offset)
|
sqlParams = append(sqlParams, pageSize, offset)
|
||||||
//mapLimit := false
|
//mapLimit := false
|
||||||
globals.SugarLogger.Debug(sql)
|
//globals.SugarLogger.Debug(sql)
|
||||||
globals.SugarLogger.Debug(utils.Format4Output(sqlParams, false))
|
//globals.SugarLogger.Debug(utils.Format4Output(sqlParams, false))
|
||||||
txDB, _ := dao.Begin(db)
|
txDB, _ := dao.Begin(db)
|
||||||
if err = dao.GetRowsTx(txDB, &storeList, sql, sqlParams...); err == nil {
|
if err = dao.GetRowsTx(txDB, &storeList, sql, sqlParams...); err == nil {
|
||||||
retVal.Stores = storeList
|
retVal.Stores = storeList
|
||||||
|
|||||||
@@ -47,12 +47,12 @@ func getAPI(appOrgCode string) (apiObj *jdshopapi.API) {
|
|||||||
return apiObj
|
return apiObj
|
||||||
}
|
}
|
||||||
|
|
||||||
func getAPI2(appOrgCode string) (apiObj *jdshopapi.API) {
|
//func getAPI2(appOrgCode string) (apiObj *jdshopapi.API) {
|
||||||
apiObj = jdshopapi.New("", "", "")
|
// apiObj = jdshopapi.New("", "", "")
|
||||||
configs, _ := dao.QueryConfigs(dao.GetDB(), "jdsCookie", model.ConfigTypeCookie, "")
|
// configs, _ := dao.QueryConfigs(dao.GetDB(), "jdsCookie", model.ConfigTypeCookie, "")
|
||||||
apiObj.SetCookieWithStr(configs[0].Value)
|
// apiObj.SetCookieWithStr(configs[0].Value)
|
||||||
return apiObj
|
// return apiObj
|
||||||
}
|
//}
|
||||||
|
|
||||||
func GetAPI(appOrgCode string) (apiObj *jdshopapi.API) {
|
func GetAPI(appOrgCode string) (apiObj *jdshopapi.API) {
|
||||||
apiObj = partner.CurAPIManager.GetAPI(model.VendorIDJDShop, appOrgCode).(*jdshopapi.API)
|
apiObj = partner.CurAPIManager.GetAPI(model.VendorIDJDShop, appOrgCode).(*jdshopapi.API)
|
||||||
|
|||||||
@@ -786,7 +786,7 @@ func updateOrCreateCategories(storeCat *dao.SkuStoreCatInfo, isCreate bool) (sta
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
status, err = getAPI2(storeCat.VendorOrgCode).CreateShopCategory(createShopCategoryParams)
|
status, err = getAPI(storeCat.VendorOrgCode).CreateShopCategory(createShopCategoryParams)
|
||||||
return status, err
|
return status, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user