mirror of
https://github.com/yml2213/javascript.git
synced 2026-10-17 05:12:01 +08:00
Update gqcq.js
This commit is contained in:
+10
-8
@@ -45,7 +45,7 @@ async function tips(ckArr) {
|
||||
let Version = `\n📌 本地脚本: V ${VersionCheck} 远程仓库脚本: V ${Version_latest}`
|
||||
DoubleLog(`${Version}\n📌 🆙 更新内容: ${Change}`);
|
||||
// DoubleLog(`${thank}`);
|
||||
await wyy();
|
||||
await yiyan();
|
||||
DoubleLog(`\n========== 共找到 ${ckArr.length} 个账号 ==========`);
|
||||
debugLog(`【debug】 这是你的账号数组:\n ${ckArr}`);
|
||||
}
|
||||
@@ -761,20 +761,20 @@ function wait(n) {
|
||||
|
||||
|
||||
/**
|
||||
* 每日网抑云
|
||||
* 一言
|
||||
*/
|
||||
function wyy() {
|
||||
function yiyan() {
|
||||
return new Promise((resolve) => {
|
||||
let url = {
|
||||
url: `https://api.qqsuu.cn/api/comment?format=json`,
|
||||
url: `https://v1.hitokoto.cn/`,
|
||||
}
|
||||
$.get(url, async (err, resp, data) => {
|
||||
try {
|
||||
// console.log(data);
|
||||
data = JSON.parse(data);
|
||||
content = data.data[0].content
|
||||
source = data.data[0].source
|
||||
msg = `[网抑云时间]: ${content} by--${source}`
|
||||
DoubleLog(msg);
|
||||
msg = `[一言]: ${data.hitokoto} by--${data.from}`
|
||||
console.log(msg);
|
||||
msg += `\nmsg`;
|
||||
} catch (e) {
|
||||
$.logErr(e, resp);
|
||||
} finally {
|
||||
@@ -784,6 +784,8 @@ function wyy() {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* get请求
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user