mirror of
https://github.com/yml2213/javascript.git
synced 2026-10-18 14:29:11 +08:00
5-13 增加箱提示,增加分享任务
This commit is contained in:
+28
-5
@@ -91,7 +91,7 @@ async function start() {
|
||||
|
||||
if (local_hours() == 14) {
|
||||
console.log("开始 分享");
|
||||
await Share();
|
||||
await do_Share();
|
||||
await $.wait(2 * 1000);
|
||||
}
|
||||
local_hours()
|
||||
@@ -271,9 +271,34 @@ async function open_box() {
|
||||
/**
|
||||
* 分享获得 3000金币 httpGet
|
||||
*/
|
||||
async function Share() {
|
||||
async function do_Share() {
|
||||
|
||||
|
||||
let url = {
|
||||
url: `https://nebula.kuaishou.com/rest/n/nebula/daily/report?taskId=122`,
|
||||
url: `https://nebula.kuaishou.com/rest/n/nebula/account/withdraw/setShare`,
|
||||
headers: {
|
||||
'Cookie': ck[0],
|
||||
},
|
||||
body: '',
|
||||
};
|
||||
let result = await httpPost(url, `分享`);
|
||||
|
||||
if (result.result == 1) {
|
||||
await $.wait(200);
|
||||
await Share(122);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 分享获得 3000金币 httpGet
|
||||
*/
|
||||
async function Share(id) {
|
||||
|
||||
|
||||
let url = {
|
||||
url: `https://nebula.kuaishou.com/rest/n/nebula/daily/report?taskId=${id}`,
|
||||
headers: {
|
||||
'Cookie': ck[0],
|
||||
},
|
||||
@@ -305,8 +330,6 @@ async function Share() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//#region 固定代码
|
||||
// ============================================变量检查============================================ \\
|
||||
|
||||
|
||||
Reference in New Issue
Block a user