瀏覽代碼

拼多多联盟

master
huangjiajun 7 月之前
父節點
當前提交
9f10df5e99
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      pdd_union/goods.go

+ 2
- 2
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)
}


Loading…
取消
儲存