From a82d56a464c25effe8eaef262c9894894e36a746 Mon Sep 17 00:00:00 2001 From: MisteryMonster <40703811+MisteryMonster@users.noreply.github.com> Date: Wed, 22 Apr 2020 22:37:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=85=A8=E5=9B=BD?= =?UTF-8?q?=E6=B0=94=E8=B1=A1=E9=A2=84=E8=AD=A6=E7=A9=BA=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=20(#4534)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/weatheralarm/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',