From 16ab710302bf592c275d98ad9d398b904c830b77 Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 30 Apr 2019 11:34:54 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E5=90=8C=E6=AD=A5=E9=A5=BF=E7=99=BE?= =?UTF-8?q?=E9=97=A8=E5=BA=97=E8=90=A5=E4=B8=9A=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/partner/purchase/ebai/store.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/business/partner/purchase/ebai/store.go b/business/partner/purchase/ebai/store.go index 1ca1f083f..3182ddb5e 100644 --- a/business/partner/purchase/ebai/store.go +++ b/business/partner/purchase/ebai/store.go @@ -204,10 +204,9 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin if err != nil { return err } - // todo 饿百 开店审核通过后不允许修改商户信息 - // params := genStoreMapFromStore(store) - // if err = api.EbaiAPI.ShopUpdate(params); err == nil { - // } + params := genStoreMapFromStore(store) + if err = api.EbaiAPI.ShopUpdate(params); err == nil { + } } } } @@ -375,7 +374,8 @@ func genStoreMapFromStore(store *tEbaiStoreInfo) map[string]interface{} { if store.SyncStatus&(model.SyncFlagNewMask|model.SyncFlagStoreName) != 0 { // params["name"] = jxutils.ComposeStoreName(store.Name, model.VendorIDEBAI) } - if store.SyncStatus&(model.SyncFlagNewMask|model.SyncFlagStoreAddress) != 0 { + // todo 饿百 开店审核通过后不允许修改商户信息 + if store.SyncStatus&(model.SyncFlagNewMask /*|model.SyncFlagStoreAddress*/) != 0 { params["longitude"] = jxutils.IntCoordinate2Standard(store.Lng) params["latitude"] = jxutils.IntCoordinate2Standard(store.Lat) params["address"] = store.Address