style: auto format

This commit is contained in:
GitHub Action
2020-08-30 03:04:29 +00:00
parent 0c01154b51
commit a1a0194cbb
6 changed files with 60 additions and 60 deletions
+9 -9
View File
@@ -2,15 +2,15 @@ const got = require('@/utils/got');
const cheerio = require('cheerio');
const config = {
'1000': '要闻',
'1003': '股市',
'1007': '环球',
'1005': '公司',
'1006': '地产',
'1118': '券商',
'1032': '金融',
'1119': '汽车',
'1111': '科创版',
1000: '要闻',
1003: '股市',
1007: '环球',
1005: '公司',
1006: '地产',
1118: '券商',
1032: '金融',
1119: '汽车',
1111: '科创版',
};
module.exports = async (ctx) => {
+10 -10
View File
@@ -13,16 +13,16 @@ module.exports = async (ctx) => {
'07': 'http://www.eeo.com.cn/shangye/yiliao/',
'08': 'http://www.eeo.com.cn/fcqcxf/dichan/',
'09': 'http://www.eeo.com.cn/fcqcxf/qiche/',
'10': 'http://www.eeo.com.cn/fcqcxf/xiaofei/',
'11': 'http://www.eeo.com.cn/yule/yingshi/',
'12': 'http://www.eeo.com.cn/yule/yule/',
'13': 'http://www.eeo.com.cn/yule/tiyu/',
'14': 'http://www.eeo.com.cn/yule/jiaoyu/',
'15': 'http://www.eeo.com.cn/gcj/guanchajia/',
'16': 'http://www.eeo.com.cn/gcj/zhuanlan/',
'17': 'http://www.eeo.com.cn/gcj/shuping/',
'18': 'http://www.eeo.com.cn/gcj/lishi/',
'19': 'http://www.eeo.com.cn/yaowen/hfshuju/',
10: 'http://www.eeo.com.cn/fcqcxf/xiaofei/',
11: 'http://www.eeo.com.cn/yule/yingshi/',
12: 'http://www.eeo.com.cn/yule/yule/',
13: 'http://www.eeo.com.cn/yule/tiyu/',
14: 'http://www.eeo.com.cn/yule/jiaoyu/',
15: 'http://www.eeo.com.cn/gcj/guanchajia/',
16: 'http://www.eeo.com.cn/gcj/zhuanlan/',
17: 'http://www.eeo.com.cn/gcj/shuping/',
18: 'http://www.eeo.com.cn/gcj/lishi/',
19: 'http://www.eeo.com.cn/yaowen/hfshuju/',
};
const response = await got({
+7 -7
View File
@@ -6,13 +6,13 @@ module.exports = async (ctx) => {
const { category = 'all' } = ctx.params;
const baseUrl = `https://getitfree.cn`;
const categoryToLabel = {
'8': 'PC',
'17': 'Android',
'50': 'Mac',
'309': '限时折扣',
'310': '限时免费',
'311': '永久免费',
'312': 'UWP',
8: 'PC',
17: 'Android',
50: 'Mac',
309: '限时折扣',
310: '限时免费',
311: '永久免费',
312: 'UWP',
all: '全部文章',
};
+14 -14
View File
@@ -2,20 +2,20 @@ const got = require('@/utils/got');
module.exports = async (ctx) => {
const code_dict = {
'1': 'home',
'2': 'heartstone',
'3': 'mtg',
'4': 'videogame',
'17': 'verse',
'16': 'yugioh',
'67': 'artifact',
'62': 'twozerofortyseven',
'9': 'boardgame',
'22': 'mobilegame',
'21': 'yingdi',
'5': 'yingdistation',
'68': 'hunwu',
'14': 'gwent',
1: 'home',
2: 'heartstone',
3: 'mtg',
4: 'videogame',
17: 'verse',
16: 'yugioh',
67: 'artifact',
62: 'twozerofortyseven',
9: 'boardgame',
22: 'mobilegame',
21: 'yingdi',
5: 'yingdistation',
68: 'hunwu',
14: 'gwent',
};
const host = 'https://www.iyingdi.com';
const game = code_dict[ctx.params.typecode];
+8 -8
View File
@@ -37,14 +37,14 @@ module.exports = async (ctx) => {
);
const titleMap = {
'0': '推荐',
'7': '零售前沿',
'10': '智能科技',
'9': '泛文娱',
'98': '教育',
'70': '大健康',
'8': '新消费',
'72': '创业投资',
0: '推荐',
7: '零售前沿',
10: '智能科技',
9: '泛文娱',
98: '教育',
70: '大健康',
8: '新消费',
72: '创业投资',
};
ctx.state.data = {
title: `品途商业评论-${titleMap[type]}`,
+12 -12
View File
@@ -5,19 +5,19 @@ const url = require('url');
const baseTitle = '南信大信息公告栏';
const baseUrl = 'https://bulletin.nuist.edu.cn';
const map = {
'791': '全部',
'792': '文件公告',
791: '全部',
792: '文件公告',
xsbgw: '学术报告',
'779': '招标信息',
'780': '会议通知',
'781': '党政事务',
'782': '组织人事',
'783': '科研信息',
'784': '招生就业',
'785': '教学考试',
'786': '专题讲座',
'788': '校园活动',
'789': '学院动态',
779: '招标信息',
780: '会议通知',
781: '党政事务',
782: '组织人事',
783: '科研信息',
784: '招生就业',
785: '教学考试',
786: '专题讲座',
788: '校园活动',
789: '学院动态',
qt: '其他',
};