|
@ -1,3 +1,12 @@ |
|
|
|
|
|
/* |
|
|
|
|
|
低保版,开宝箱需kuaishou.api_st和did两个参数,抓安卓完整ck丢进去即可 |
|
|
|
|
|
export ksjshd='ck1 |
|
|
|
|
|
ck2 |
|
|
|
|
|
ck3' |
|
|
|
|
|
ck回车符分割 |
|
|
|
|
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
const $ = new Env('快手极速版低保'); |
|
|
const $ = new Env('快手极速版低保'); |
|
|
let res, |
|
|
let res, |
|
|
ksjsbCookie = process.env.ksjsbCookie || '', |
|
|
ksjsbCookie = process.env.ksjsbCookie || '', |
|
@ -109,14 +118,37 @@ class ksUser { |
|
|
if (!todaySigned) { |
|
|
if (!todaySigned) { |
|
|
await $.wait(200); |
|
|
await $.wait(200); |
|
|
await this.doSign(); |
|
|
await this.doSign(); |
|
|
|
|
|
await $.wait(200); |
|
|
|
|
|
await this.TaskSignIn(); |
|
|
await $.wait(200); |
|
|
await $.wait(200); |
|
|
await this.setShare(); |
|
|
await this.setShare(); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
console.log(`🎉${this.name}=>|查询签到信息失败:${res.error_msg}`); |
|
|
console.log(`🎉${this.name}=>|查询签到信息失败:${res.error_msg}`); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
//签到领现金
|
|
|
|
|
|
async TaskSignIn() { |
|
|
|
|
|
let body = ''; |
|
|
|
|
|
let url = `https://nebula.kuaishou.com/rest/n/nebula/cashSign/goldenAreaTaskSignIn` |
|
|
|
|
|
let options = getOptions(url, this.cookie, body); |
|
|
|
|
|
await doRequest('get', options); |
|
|
|
|
|
if (!res) { |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
if (res.result == 1) { |
|
|
|
|
|
console.log(`🎉${this.name}=>|新手任务:${res.data.currentDay}/${res.data.activityDays}`); |
|
|
|
|
|
|
|
|
|
|
|
let rewardlist=res.data.rewardList |
|
|
|
|
|
for (let list of rewardlist){ |
|
|
|
|
|
if (list.bottomText=='今天')console.log(`🎉${this.name}=>|今日已领取:${parseFloat(list.amount/100)}元`) |
|
|
|
|
|
} |
|
|
|
|
|
console.log(res.data.instructionText) |
|
|
|
|
|
} else { |
|
|
|
|
|
console.log(`🎉${this.name}=>|新手任务:${res.error_msg}`) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//签到
|
|
|
//签到
|
|
|
async doSign() { |
|
|
async doSign() { |
|
@ -154,6 +186,8 @@ class ksUser { |
|
|
if (_0xa69994.result == 1) { |
|
|
if (_0xa69994.result == 1) { |
|
|
this.coinBalance = _0xa69994.data.coinBalance; |
|
|
this.coinBalance = _0xa69994.data.coinBalance; |
|
|
this.cashBalance = _0xa69994.data.cashBalance; |
|
|
this.cashBalance = _0xa69994.data.cashBalance; |
|
|
|
|
|
this.totalAmount=_0xa69994.data.accumulativeAmount; |
|
|
|
|
|
|
|
|
let _0x54aac5 = _0xa69994.data.exchangeCoinState; |
|
|
let _0x54aac5 = _0xa69994.data.exchangeCoinState; |
|
|
|
|
|
|
|
|
console.log( |
|
|
console.log( |
|
@ -163,7 +197,9 @@ class ksUser { |
|
|
this.cashBalance + |
|
|
this.cashBalance + |
|
|
'元,' + |
|
|
'元,' + |
|
|
this.coinBalance + |
|
|
this.coinBalance + |
|
|
'金币' |
|
|
'金币, 共领取' + |
|
|
|
|
|
this.totalAmount + |
|
|
|
|
|
'元' |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
_0x54aac5 == 2 && (await $.wait(200), await this.changeExchangeType(0)); |
|
|
_0x54aac5 == 2 && (await $.wait(200), await this.changeExchangeType(0)); |
|
@ -176,7 +212,6 @@ class ksUser { |
|
|
|
|
|
|
|
|
//开箱子,1金币懒得搞
|
|
|
//开箱子,1金币懒得搞
|
|
|
async openBox(_0x412555) { |
|
|
async openBox(_0x412555) { |
|
|
return; |
|
|
|
|
|
let _0x513362 = |
|
|
let _0x513362 = |
|
|
'https://nebula.kuaishou.com/rest/n/nebula/box/explore?isOpen=' + |
|
|
'https://nebula.kuaishou.com/rest/n/nebula/box/explore?isOpen=' + |
|
|
_0x412555 + |
|
|
_0x412555 + |
|
@ -202,8 +237,7 @@ class ksUser { |
|
|
_0x15220b.data.commonAwardPopup.awardAmount + |
|
|
_0x15220b.data.commonAwardPopup.awardAmount + |
|
|
'金币' |
|
|
'金币' |
|
|
), |
|
|
), |
|
|
await $.wait(200), |
|
|
await $.wait(200)) |
|
|
await this.ksAdParam(AdName.box)) |
|
|
|
|
|
: console.log('🎉' + this.name + '=>|开宝箱没有获得金币') |
|
|
: console.log('🎉' + this.name + '=>|开宝箱没有获得金币') |
|
|
: _0x15220b.data.openTime > -1 |
|
|
: _0x15220b.data.openTime > -1 |
|
|
? (console.log( |
|
|
? (console.log( |
|
@ -378,6 +412,8 @@ class ksUser { |
|
|
console.log('\n=========== 🎉' + u.name + ' 🎉==========='); |
|
|
console.log('\n=========== 🎉' + u.name + ' 🎉==========='); |
|
|
await u.getSignInfo(); |
|
|
await u.getSignInfo(); |
|
|
await $.wait(200); |
|
|
await $.wait(200); |
|
|
|
|
|
//await u.TaskSignIn();
|
|
|
|
|
|
await $.wait(200); |
|
|
await u.openBox(false); |
|
|
await u.openBox(false); |
|
|
} |
|
|
} |
|
|
console.log('\n============== 🎉账户情况🎉 =============='); |
|
|
console.log('\n============== 🎉账户情况🎉 =============='); |
|
@ -386,6 +422,7 @@ class ksUser { |
|
|
await $.wait(200); |
|
|
await $.wait(200); |
|
|
await u.accountInfo(); |
|
|
await u.accountInfo(); |
|
|
await $.wait(200); |
|
|
await $.wait(200); |
|
|
|
|
|
//if (hour==`${ksWithdrawTime}`) await withdrawOverview()
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
})() |
|
|
})() |
|
|