快手极速其他脚本都没用了,只能先用低保版,
低保版,只做签到,其他不做
1.拉库
ql raw https://gitee.com/ajouter/sbww/raw/master/123.js
2.变量填写
export ksjsbCookie=’ck’
变量ksjsbCookie
3.需要开宝箱需要did
ck;did=xxxx
不然开宝箱就是1金币
4.只做签到,每天0.3
一天运行一次就可以了
如果拉不到库请自己使用下面库文件
const $ = new Env('快手极速版低保');
let res,
ksjsbCookie = process.env.ksjsbCookie || '',
Users = [],
ksjsbCash = process.env.ksjsbCash || '',
ksjsbWithdrawTime = process.env.ksjsbWithdrawTime || 15,
ksjsbAggressive = process.env.ksjsbAggressive || 0,
ksjsbNotify = process.env.ksjsbNotify || 1,
index = 0,
count = 0;
//let curHours = new Date().getHours();
class ksUser {
constructor(cookie) {
let api_st = cookie.match(/(kuaishou.api_st=[\w\-]+)/)[1] + ';';
this.index = ++index;
this.cookie =
'kpn=NEBULA; kpf=ANDROID_PHONE; did=ANDROID_' +
randomString(16) +
'; ver=9.10; appver=9.10.40.2474; language=zh-cn; countryCode=CN; sys=ANDROID_5.1; client_key=2ac2a76d; ' +
api_st;
this.name = this.index;
this.valid = false;
this.bindAlipay = false;
this.alipay = '';
this.bindWechat = false;
this.wechat = '';
this.needSms = false;
}
//获取用户信息
async getUserInfo() {
let url =
'https://nebula.kuaishou.com/rest/n/nebula/activity/earn/overview/basicInfo';
let body = '';
let options = getOptions(url, this.cookie, body);
await doRequest('get', options);
if (!res) {
return;
}
if (res.result == 1) {
this.valid = true;
this.name = res.data.userData.nickname;
this.cashBalance = res.data.totalCash;
this.coinBalance = res.data.totalCoin;
this.allCash = res.data.allCash;
console.log(
`??${this.name}=>账户余额${this.cashBalance}元,${
this.coinBalance
}金币,未审核余额${Math.floor(
parseFloat(this.allCash) - parseFloat(this.cashBalance)
)}元`
);
} else {
console.log(`??${this.name}=>查询账户信息失败:${res.error_msg}`);
}
}
//分享获得3000金币
async setShare() {
let url =
'https://nebula.kuaishou.com/rest/n/nebula/account/withdraw/setShare';
let body = '';
let options = getOptions(url, this.cookie, body);
await doRequest('post', options);
if (!res) {
return;
}
if (res.result == 1) {
console.log(`??${this.name}=>准备分享得金币`);
await $.wait(200);
await this.taskReward(122);
} else {
console.log(`??${this.name}=>分享失败:${res.error_msg}`);
}
}
//做任务
async taskReward(taskId) {
let url = `https://nebula.kuaishou.com/rest/n/nebula/daily/report?taskId=${taskId}`;
let body = '';
let options = getOptions(url, this.cookie, body);
await doRequest('get', options);
if (!res) {
return;
}
if (res.result == 1) {
console.log(
`??${this.name}=>完成任务[${taskId}]成功,获得${res.data.amount}金币`
);
} else {
console.log(
`??${this.name}=>完成任务[${taskId}]失败:${res.error_msg}`
);
}
}
//签到详情
async getSignInfo() {
let url = 'https://nebula.kuaishou.com/rest/n/nebula/sign/queryPopup';
let body = '';
let options = getOptions(url, this.cookie, body);
await doRequest('get', options);
if (!res) {
return;
}
if (res.result == 1) {
let todaySigned = res.data.nebulaSignInPopup.todaySigned;
console.log(`??${this.name}=>今天${todaySigned ? '已' : '未'}签到`);
if (!todaySigned) {
await $.wait(200);
await this.doSign();
await $.wait(200);
await this.setShare();
}
} else {
console.log(`??${this.name}=>查询签到信息失败:${res.error_msg}`);
}
}
//签到
async doSign() {
let url =
'https://nebula.kuaishou.com/rest/n/nebula/sign/sign?source=activity';
let body = '';
let options = getOptions(url, this.cookie, body);
await doRequest('get', options);
if (!res) {
return;
}
if (res.result == 1) {
console.log(`${this.name}=>签到成功:${res.data.toast}`);
await $.wait(200);
} else {
console.log(`??${this.name}=>签到失败:${res.error_msg}`);
}
}
async accountOverview() {
let _0x512fe7 =
'https://nebula.kuaishou.com/rest/n/nebula/account/overview',
_0x251847 = '',
_0x39f16d = getOptions(_0x512fe7, this.cookie, _0x251847);
await doRequest('get', _0x39f16d);
let _0xa69994 = res;
if (!_0xa69994) {
return;
}
if (_0xa69994.result == 1) {
this.coinBalance = _0xa69994.data.coinBalance;
this.cashBalance = _0xa69994.data.cashBalance;
let _0x54aac5 = _0xa69994.data.exchangeCoinState;
console.log(
'??' +
this.name +
'=>账户余额' +
this.cashBalance +
'元,' +
this.coinBalance +
'金币'
);
_0x54aac5 == 2 && (await $.wait(200), await this.changeExchangeType(0));
} else {
console.log(
'??' + this.name + '=>查询账户信息失败:' + _0xa69994.error_msg
);
}
}
/* //开箱子,1金币懒得搞
async openBox(_0x412555) {
let _0x513362 =
'https://nebula.kuaishou.com/rest/n/nebula/box/explore?isOpen=' +
_0x412555 +
'&isReadyOfAdPlay=