From 54f3520c129bf3293f283975d45643324932fddf Mon Sep 17 00:00:00 2001 From: richboo111 Date: Wed, 2 Aug 2023 11:34:05 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/store.go | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 074aeaec1..075d740b8 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -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)