style: auto format

This commit is contained in:
github-actions[bot]
2022-07-24 16:25:41 +00:00
parent c105ab9a19
commit cc0f5f1520
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ const { parseDate } = require('@/utils/parse-date');
module.exports = async (ctx) => {
const category_dict = {
tzgg: '通知公告'
tzgg: '通知公告',
};
const items = await Promise.all(
+3 -2
View File
@@ -1,7 +1,7 @@
const got = require('@/utils/got');
const cheerio = require('cheerio');
const { parseDate } = require('@/utils/parse-date');
const timezone = require("@/utils/timezone");
const timezone = require('@/utils/timezone');
module.exports = async (ctx) => {
const category_dict = {
@@ -28,7 +28,8 @@ module.exports = async (ctx) => {
link: 'https://jjc.nju.edu.cn' + item.find('a').attr('href'),
pubDate: timezone(parseDate(item.find('td').last().text(), 'YYYY-MM-DD'), +8),
category: category_dict[c],
};})
};
})
);
})
);