diff --git a/lib/routes/weatheralarm/index.js b/lib/routes/weatheralarm/index.js index 4537ef7f91..810601299a 100644 --- a/lib/routes/weatheralarm/index.js +++ b/lib/routes/weatheralarm/index.js @@ -1,7 +1,7 @@ const got = require('@/utils/got'); module.exports = async (ctx) => { - const province = encodeURIComponent(ctx.params.province) || '&'; + const province = ctx.params.province || '&'; const alarmInfoURL = `http://www.nmc.cn/rest/findAlarm?pageNo=1&pageSize=20&signaltype=&signallevel=&province=${province}`; const response = await got({ method: 'get',