Procházet zdrojové kódy

拼多多联盟

master
huangjiajun před 7 měsíci
rodič
revize
36904e6f48
1 změnil soubory, kde provedl 6 přidání a 6 odebrání
  1. +6
    -6
      pdd_union/goods.go

+ 6
- 6
pdd_union/goods.go Zobrazit soubor

@@ -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.Float64ToStr(zhios_third_party_utils.StrToFloat64(goodsSale) * 10000)
goodsSale = zhios_third_party_utils.IntToStr(zhios_third_party_utils.StrToInt(goodsSale) * 10000)
}
if strings.Contains(zhios_third_party_utils.AnyToString(tmp["goods_sales"]), "万") {
goodsSale = strings.ReplaceAll(goodsSale, "万", "")
goodsSale = zhios_third_party_utils.Float64ToStr(zhios_third_party_utils.StrToFloat64(goodsSale) * 10000)
goodsSale = zhios_third_party_utils.IntToStr(zhios_third_party_utils.StrToInt(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.Float64ToStr(zhios_third_party_utils.StrToFloat64(goodsSale) * 10000)
goodsSale = zhios_third_party_utils.IntToStr(zhios_third_party_utils.StrToInt(goodsSale) * 10000)
}
if strings.Contains(zhios_third_party_utils.AnyToString(tmp["goods_sales"]), "万") {
goodsSale = strings.ReplaceAll(goodsSale, "万", "")
goodsSale = zhios_third_party_utils.Float64ToStr(zhios_third_party_utils.StrToFloat64(goodsSale) * 10000)
goodsSale = zhios_third_party_utils.IntToStr(zhios_third_party_utils.StrToInt(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.Float64ToStr(zhios_third_party_utils.StrToFloat64(tmp["goods_sales"]) * 10000)
tmp["goods_sales"] = zhios_third_party_utils.IntToStr(zhios_third_party_utils.StrToInt(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.Float64ToStr(zhios_third_party_utils.StrToFloat64(tmp["goods_sales"]) * 10000)
tmp["goods_sales"] = zhios_third_party_utils.IntToStr(zhios_third_party_utils.StrToInt(tmp["goods_sales"]) * 10000)
}
tmp["goods_img"] = v.GoodsImageUrl
tmp["goods_min_img"] = v.GoodsThumbnailUrl


Načítá se…
Zrušit
Uložit