From 2d4be7d10c9e23fbd39e9c957b2ed6cac8bb8606 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 16 May 2024 13:48:53 +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 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pdd_union/goods.go b/pdd_union/goods.go index 89cc538..f020aa8 100644 --- a/pdd_union/goods.go +++ b/pdd_union/goods.go @@ -34,11 +34,11 @@ func GetRecommendGoods(keyArr map[string]string, param map[string]interface{}) [ goodsSale := v.SalesTip if strings.Contains(goodsSale, "万+") { goodsSale = strings.ReplaceAll(goodsSale, "万+", "") - goodsSale = zhios_third_party_utils.IntToStr(zhios_third_party_utils.StrToInt(goodsSale) * 10000) + goodsSale = zhios_third_party_utils.IntToStr(int(zhios_third_party_utils.StrToFloat64(goodsSale) * 10000)) } if strings.Contains(goodsSale, "万") { goodsSale = strings.ReplaceAll(goodsSale, "万", "") - goodsSale = zhios_third_party_utils.IntToStr(zhios_third_party_utils.StrToInt(goodsSale) * 10000) + goodsSale = zhios_third_party_utils.IntToStr(int(zhios_third_party_utils.StrToFloat64(goodsSale) * 10000)) } tmp["goods_sales"] = goodsSale @@ -77,11 +77,11 @@ func GetSearchGoods(keyArr map[string]string, param map[string]interface{}) []ma goodsSale := v.SalesTip if strings.Contains(goodsSale, "万+") { goodsSale = strings.ReplaceAll(goodsSale, "万+", "") - goodsSale = zhios_third_party_utils.IntToStr(zhios_third_party_utils.StrToInt(goodsSale) * 10000) + goodsSale = zhios_third_party_utils.IntToStr(int(zhios_third_party_utils.StrToFloat64(goodsSale) * 10000)) } if strings.Contains(goodsSale, "万") { goodsSale = strings.ReplaceAll(goodsSale, "万", "") - goodsSale = zhios_third_party_utils.IntToStr(zhios_third_party_utils.StrToInt(goodsSale) * 10000) + goodsSale = zhios_third_party_utils.IntToStr(int(zhios_third_party_utils.StrToFloat64(goodsSale) * 10000)) } tmp["goods_sales"] = goodsSale @@ -121,11 +121,11 @@ func GetSearchGoodsDetail(keyArr map[string]string, param map[string]interface{} tmp["goods_sales"] = v.SalesTip if strings.Contains(tmp["goods_sales"], "万+") { tmp["goods_sales"] = strings.ReplaceAll(tmp["goods_sales"], "万+", "") - tmp["goods_sales"] = zhios_third_party_utils.IntToStr(zhios_third_party_utils.StrToInt(tmp["goods_sales"]) * 10000) + tmp["goods_sales"] = zhios_third_party_utils.IntToStr(int(zhios_third_party_utils.StrToFloat64(tmp["goods_sales"]) * 10000)) } if strings.Contains(tmp["goods_sales"], "万") { tmp["goods_sales"] = strings.ReplaceAll(tmp["goods_sales"], "万", "") - tmp["goods_sales"] = zhios_third_party_utils.IntToStr(zhios_third_party_utils.StrToInt(tmp["goods_sales"]) * 10000) + tmp["goods_sales"] = zhios_third_party_utils.IntToStr(int(zhios_third_party_utils.StrToFloat64(tmp["goods_sales"]) * 10000)) } tmp["goods_img"] = v.GoodsImageUrl tmp["goods_min_img"] = v.GoodsThumbnailUrl