1
This commit is contained in:
@@ -6308,10 +6308,17 @@ func BatchGetMTStoreLogos(vendorOrgCode string, mtStoreIDs []string) (storeLogos
|
||||
//批量更新美团门店logos
|
||||
func BatchUpdateMTStoreLogos(vendorOrgCode string, relInfo []MtRelInfo) (hint string) {
|
||||
for _, v := range relInfo {
|
||||
param := map[string]interface{}{
|
||||
"pic_url": v.PicUrl,
|
||||
"address": v.Address,
|
||||
if len(v.PicUrl) == 0 && len(v.Address) == 0 {
|
||||
return "暂无需要更新数据"
|
||||
}
|
||||
param := map[string]interface{}{}
|
||||
if len(v.PicUrl) > 0 {
|
||||
param["pic_url"] = v.PicUrl
|
||||
}
|
||||
if len(v.Address) > 0 {
|
||||
param["address"] = v.Address
|
||||
}
|
||||
|
||||
storeDetail, err1 := dao.GetStoreDetailForDD(dao.GetDB(), 0, model.VendorIDMTWM, v.PoiCode, "")
|
||||
if err1 != nil {
|
||||
hint += fmt.Sprintf("%s:%v\n", v.PoiCode, err1)
|
||||
|
||||
Reference in New Issue
Block a user