From 517c44333208a906fa9d6679457811290cb21a9b Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Wed, 4 Aug 2021 17:50:30 +0800 Subject: [PATCH] aa --- business/jxstore/tempop/tempop.go | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index 909f87a04..cb23856cb 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -1885,20 +1885,20 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { //tasksch.HandleTask(task, nil, true).Run() //_, err = task.GetResult(0) //京东账号更新 - var ( - db = dao.GetDB() - ) - if configs, err := dao.QueryConfigs(dao.GetDB(), "jdConfigCookie", model.ConfigTypeCookie, ""); err == nil { - api.JdAPI.SetCookieWithStr(configs[0].Value) - result, _ := api.JdAPI.GetJdAppInfo() - if result != nil { - if vocs, _ := dao.GetVendorOrgCode(db, model.VendorIDJD, result.OrgCode, model.VendorOrgTypePlatform); len(vocs) > 0 { - vocs[0].AppKey = result.AppKey - vocs[0].AppSecret = result.AppSecret - dao.UpdateEntity(db, vocs[0], "AppKey", "AppSecret") - } - } - } + //var ( + // db = dao.GetDB() + //) + //if configs, err := dao.QueryConfigs(dao.GetDB(), "jdConfigCookie", model.ConfigTypeCookie, ""); err == nil { + // api.JdAPI.SetCookieWithStr(configs[0].Value) + // result, _ := api.JdAPI.GetJdAppInfo() + // if result != nil { + // if vocs, _ := dao.GetVendorOrgCode(db, model.VendorIDJD, result.OrgCode, model.VendorOrgTypePlatform); len(vocs) > 0 { + // vocs[0].AppKey = result.AppKey + // vocs[0].AppSecret = result.AppSecret + // dao.UpdateEntity(db, vocs[0], "AppKey", "AppSecret") + // } + // } + //} //刷新京东真实订单号 //var ( // db = dao.GetDB() @@ -1970,6 +1970,7 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { // } // } //} + cms.RefreshPageStore() return err }