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

This commit is contained in:
MisteryMonster 2020-04-22 22:37:57 +08:00 committed by GitHub
parent 67a480dccf
commit a82d56a464
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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',