From 9f10df5e99430934ec79c596077f3f5fa57e6408 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 16 May 2024 13:43:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=BC=E5=A4=9A=E5=A4=9A=E8=81=94=E7=9B=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pdd_union/goods.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdd_union/goods.go b/pdd_union/goods.go index 5f15200..89cc538 100644 --- a/pdd_union/goods.go +++ b/pdd_union/goods.go @@ -36,7 +36,7 @@ func GetRecommendGoods(keyArr map[string]string, param map[string]interface{}) [ goodsSale = strings.ReplaceAll(goodsSale, "万+", "") goodsSale = zhios_third_party_utils.IntToStr(zhios_third_party_utils.StrToInt(goodsSale) * 10000) } - if strings.Contains(zhios_third_party_utils.AnyToString(tmp["goods_sales"]), "万") { + if strings.Contains(goodsSale, "万") { goodsSale = strings.ReplaceAll(goodsSale, "万", "") goodsSale = zhios_third_party_utils.IntToStr(zhios_third_party_utils.StrToInt(goodsSale) * 10000) } @@ -79,7 +79,7 @@ func GetSearchGoods(keyArr map[string]string, param map[string]interface{}) []ma goodsSale = strings.ReplaceAll(goodsSale, "万+", "") goodsSale = zhios_third_party_utils.IntToStr(zhios_third_party_utils.StrToInt(goodsSale) * 10000) } - if strings.Contains(zhios_third_party_utils.AnyToString(tmp["goods_sales"]), "万") { + if strings.Contains(goodsSale, "万") { goodsSale = strings.ReplaceAll(goodsSale, "万", "") goodsSale = zhios_third_party_utils.IntToStr(zhios_third_party_utils.StrToInt(goodsSale) * 10000) }