function bankuai(timeout = 0) {
return new Promise((resolve) => {
let url = {
url: ``,
headers: JSON.parse(jiaochenghd),
body: ``,
}
$.post(url, async (err, resp, data) => {
try {
data = JSON.parse(data)
if (data.status == 0) {
console.log(`签到成功✅获得:${data.data}\n`)
$.message += `签到成功✅获得:${data.data}\n`;
} else {
console.log(`签到失败❎:${data.message}\n`)
$.message += `签到失败❎:${data.message}\n`;
}
} catch (e) {
} finally {
resolve()
}
}, timeout)
})
}
return new Promise((resolve) => {
let url = {
url: ``,
headers: JSON.parse(jiaochenghd),
body: ``,
}
$.post(url, async (err, resp, data) => {
try {
data = JSON.parse(data)
if (data.status == 0) {
console.log(`签到成功✅获得:${data.data}\n`)
$.message += `签到成功✅获得:${data.data}\n`;
} else {
console.log(`签到失败❎:${data.message}\n`)
$.message += `签到失败❎:${data.message}\n`;
}
} catch (e) {
} finally {
resolve()
}
}, timeout)
})
}