diff --git a/lib/v2/smzdm/keyword.js b/lib/v2/smzdm/keyword.js index 0c2635975..c286a763b 100644 --- a/lib/v2/smzdm/keyword.js +++ b/lib/v2/smzdm/keyword.js @@ -6,15 +6,16 @@ const timezone = require('@/utils/timezone'); module.exports = async (ctx) => { const keyword = ctx.params.keyword; - const response = await got(`https://search.smzdm.com/`, { + const response = await got(`https://search.smzdm.com`, { headers: { - Referer: `https://search.smzdm.com/?c=home&s=${encodeURI(keyword)}&order=time&v=b`, + Referer: `https://search.smzdm.com/?c=home&s=${encodeURIComponent(keyword)}&order=time&v=a`, }, searchParams: { c: 'home', s: keyword, order: 'time', - v: 'b', + v: 'a', + mx_v: 'a', }, }); @@ -25,7 +26,7 @@ module.exports = async (ctx) => { ctx.state.data = { title: `${keyword} - 什么值得买`, - link: `https://search.smzdm.com/?c=home&s=${encodeURI(keyword)}&order=time&v=b`, + link: `https://search.smzdm.com/?c=home&s=${encodeURIComponent(keyword)}&order=time`, item: list && list.toArray().map((item) => {