This commit is contained in:
邹宗楠
2024-05-24 11:37:13 +08:00
parent 37040deab4
commit 8c7712ff0b

View File

@@ -284,12 +284,12 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
event.AddOperateEvent(jxcontext.AdminCtx, jxcontext.AdminCtx.GetTrackInfo(), updateStoreInfo, "", "", 10, "UpdateStore")
}
params := genStoreMapFromStore(store)
err = api.EbaiAPI.ShopUpdate(params)
globals.SugarLogger.Debugf("params ========= %s", utils.Format4Output(params, false))
globals.SugarLogger.Debugf("err ========= %v", err)
if err == nil {
if err = api.EbaiAPI.ShopUpdate(params); err == nil {
if store.PromoteInfo != "" {
err = api.EbaiAPI.ShopAnnouncementSet("", utils.Str2Int64(store.VendorStoreID), store.PromoteInfo)
globals.SugarLogger.Debugf("========errr : = %v", err)
globals.SugarLogger.Debugf("========data : = %s", store.VendorStoreID)
globals.SugarLogger.Debugf("========data : = %s", store.PromoteInfo)
}
updateStoreInfo := fmt.Sprintf("门店id:%d,门店名称:%s,第三方门店状态:%d,本地修改前门店状态%d,本地门店修改后状态:%d,第三方平台Id(ebai):%d", storeID, store.Name, store2.Status, store.Status, 100, store.VendorOrgCode)
event.AddOperateEvent(jxcontext.AdminCtx, jxcontext.AdminCtx.GetTrackInfo(), updateStoreInfo, "", "", 10, "UpdateStore")