mirror of
https://github.com/LinYuanovo/scripts.git
synced 2024-09-18 04:24:54 +08:00
青碳行
This commit is contained in:
parent
54d2dd7335
commit
42b7b711e6
8
qtx.js
8
qtx.js
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user