From cc0f5f15204bf831efc7d5dad860d7639c8c9bd2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 24 Jul 2022 16:25:41 +0000 Subject: [PATCH] style: auto format --- lib/v2/nju/admission.js | 2 +- lib/v2/nju/jjc.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/v2/nju/admission.js b/lib/v2/nju/admission.js index 6b9664d393..791d1334d4 100644 --- a/lib/v2/nju/admission.js +++ b/lib/v2/nju/admission.js @@ -4,7 +4,7 @@ const { parseDate } = require('@/utils/parse-date'); module.exports = async (ctx) => { const category_dict = { - tzgg: '通知公告' + tzgg: '通知公告', }; const items = await Promise.all( diff --git a/lib/v2/nju/jjc.js b/lib/v2/nju/jjc.js index 36e03fafac..c24ac9cb44 100644 --- a/lib/v2/nju/jjc.js +++ b/lib/v2/nju/jjc.js @@ -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], - };}) + }; + }) ); }) );