From 4f023f8b9d69d5f81f7df85ca4897320dffaa4f4 Mon Sep 17 00:00:00 2001 From: yml2213 Date: Fri, 13 May 2022 14:50:29 +0800 Subject: [PATCH] =?UTF-8?q?5-13=09=E5=A2=9E=E5=8A=A0=E7=AE=B1=E6=8F=90?= =?UTF-8?q?=E7=A4=BA,=E5=A2=9E=E5=8A=A0=E5=88=86=E4=BA=AB=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ksjsb/ksjsb.js | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/ksjsb/ksjsb.js b/ksjsb/ksjsb.js index 71a1ada..940fe38 100644 --- a/ksjsb/ksjsb.js +++ b/ksjsb/ksjsb.js @@ -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 固定代码 // ============================================变量检查============================================ \\