This commit is contained in:
richboo111
2023-08-02 11:34:05 +08:00
parent 84bb016109
commit 54f3520c12

View File

@@ -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)