青碳行

This commit is contained in:
临渊 2022-06-19 15:09:58 +08:00 committed by GitHub
parent 54d2dd7335
commit 42b7b711e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

8
qtx.js
View File

@ -47,9 +47,9 @@
else {
console.log(`\n\n========================================= \n脚本执行 - 北京时间(UTC+8)${new Date(
console.log(`\n\n============================================= \n脚本执行 - 北京时间(UTC+8)${new Date(
new Date().getTime() + new Date().getTimezoneOffset() * 60 * 1000 +
8 * 60 * 60 * 1000).toLocaleString()} \n=========================================\n`);
8 * 60 * 60 * 1000).toLocaleString()} \n=============================================\n`);
await poem();
@ -515,9 +515,9 @@ function poem(timeout = 3 * 1000) {
$.get(url, async (err, resp, data) => {
try {
data = JSON.parse(data)
log(`${data.content} \n————《${data.origin}${data.author}`);
console.log(`${data.content} \n————《${data.origin}${data.author}`);
} catch (e) {
log(e, resp);
console.log(e, resp);
} finally {
resolve()
}