fix: 修复全国气象预警空路由 (#4534)

This commit is contained in:
MisteryMonster
2020-04-22 22:37:57 +08:00
committed by GitHub
parent 67a480dccf
commit a82d56a464

View File

@@ -1,7 +1,7 @@
const got = require('@/utils/got'); const got = require('@/utils/got');
module.exports = async (ctx) => { 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 alarmInfoURL = `http://www.nmc.cn/rest/findAlarm?pageNo=1&pageSize=20&signaltype=&signallevel=&province=${province}`;
const response = await got({ const response = await got({
method: 'get', method: 'get',