- 同步饿百门店营业时间

This commit is contained in:
gazebo
2019-04-30 11:34:54 +08:00
parent f2cdbf7e8c
commit 16ab710302

View File

@@ -204,10 +204,9 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
if err != nil { if err != nil {
return err return err
} }
// todo 饿百 开店审核通过后不允许修改商户信息 params := genStoreMapFromStore(store)
// params := genStoreMapFromStore(store) if err = api.EbaiAPI.ShopUpdate(params); err == nil {
// 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 { if store.SyncStatus&(model.SyncFlagNewMask|model.SyncFlagStoreName) != 0 {
// params["name"] = jxutils.ComposeStoreName(store.Name, model.VendorIDEBAI) // 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["longitude"] = jxutils.IntCoordinate2Standard(store.Lng)
params["latitude"] = jxutils.IntCoordinate2Standard(store.Lat) params["latitude"] = jxutils.IntCoordinate2Standard(store.Lat)
params["address"] = store.Address params["address"] = store.Address