From 0f1853bbda7ea692d9eec26b8740634efc0913f0 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Fri, 17 Sep 2021 09:56:35 +0800 Subject: [PATCH] aa --- business/jxstore/cms/store.go | 4 ++-- business/partner/purchase/jdshop/jds.go | 12 ++++++------ business/partner/purchase/jdshop/store_sku.go | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index fc86f48ad..6439c0283 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -569,8 +569,8 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa pageSize = jxutils.FormalizePageSize(pageSize) sqlParams = append(sqlParams, pageSize, offset) //mapLimit := false - globals.SugarLogger.Debug(sql) - globals.SugarLogger.Debug(utils.Format4Output(sqlParams, false)) + //globals.SugarLogger.Debug(sql) + //globals.SugarLogger.Debug(utils.Format4Output(sqlParams, false)) txDB, _ := dao.Begin(db) if err = dao.GetRowsTx(txDB, &storeList, sql, sqlParams...); err == nil { retVal.Stores = storeList diff --git a/business/partner/purchase/jdshop/jds.go b/business/partner/purchase/jdshop/jds.go index 7d45087c8..0ae9c37b1 100644 --- a/business/partner/purchase/jdshop/jds.go +++ b/business/partner/purchase/jdshop/jds.go @@ -47,12 +47,12 @@ func getAPI(appOrgCode string) (apiObj *jdshopapi.API) { return apiObj } -func getAPI2(appOrgCode string) (apiObj *jdshopapi.API) { - apiObj = jdshopapi.New("", "", "") - configs, _ := dao.QueryConfigs(dao.GetDB(), "jdsCookie", model.ConfigTypeCookie, "") - apiObj.SetCookieWithStr(configs[0].Value) - return apiObj -} +//func getAPI2(appOrgCode string) (apiObj *jdshopapi.API) { +// apiObj = jdshopapi.New("", "", "") +// configs, _ := dao.QueryConfigs(dao.GetDB(), "jdsCookie", model.ConfigTypeCookie, "") +// apiObj.SetCookieWithStr(configs[0].Value) +// return apiObj +//} func GetAPI(appOrgCode string) (apiObj *jdshopapi.API) { apiObj = partner.CurAPIManager.GetAPI(model.VendorIDJDShop, appOrgCode).(*jdshopapi.API) diff --git a/business/partner/purchase/jdshop/store_sku.go b/business/partner/purchase/jdshop/store_sku.go index 0ef8e38be..b531b2d66 100644 --- a/business/partner/purchase/jdshop/store_sku.go +++ b/business/partner/purchase/jdshop/store_sku.go @@ -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 }