更新门店公告

This commit is contained in:
苏尹岚
2019-12-17 10:42:48 +08:00
parent 7d944f4ac6
commit 57fb6ac078
5 changed files with 11 additions and 1 deletions

View File

@@ -193,6 +193,9 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
}
params := genStoreMapFromStore(store)
if err = api.EbaiAPI.ShopUpdate(params); err == nil {
if store.PromoteInfo != "" {
err = api.EbaiAPI.ShopAnnouncementSet("", utils.Str2Int64(store.VendorStoreID), store.PromoteInfo)
}
}
}
}