Skip to content

Commit

Permalink
fix(route): bilibili/live 修改areaLink默认值为empty(当areaLink为空时报错) (#9424)
Browse files Browse the repository at this point in the history
* 修改areaLink默认值为empty(当areaLink为空时报错)

* 修改areaLink默认值为empty(当areaLink为空时报错)
  • Loading branch information
Shironobako authored Mar 31, 2022
1 parent e933a02 commit 82a556f
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions lib/v2/bilibili/liveArea.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,8 @@ module.exports = async (ctx) => {
parentID = parentArea.id;
areaTitle = area.name;
// cateID = area.cate_id;
switch (parentID) {
case 1:
areaLink = `https://live.bilibili.com/pages/area/ent-all#${area.cate_id}/${areaID}`;
break;
case 2:
case 3:
areaLink = `https://live.bilibili.com/p/eden/area-tags#/${parentID}/${areaID}`;
break;
case 4:
areaLink = 'https://live.bilibili.com/pages/area/draw';
break;
}
areaLink = `https://live.bilibili.com/p/eden/area-tags?parentAreaId=${parentID}&areaId=${areaID}`;
break;
}
}
}
Expand Down

0 comments on commit 82a556f

Please sign in to comment.