Browse Source

更新ksjsb

main
haptear 3 years ago
parent
commit
90978a0f7b
  1. 11
      ks/ksjsb.js

11
ks/ksjsb.js

@ -16,12 +16,11 @@ let res,
class ksUser { class ksUser {
constructor(cookie) { constructor(cookie) {
let api_st = cookie.match(/(kuaishou.api_st=[\w\-]+)/)[1] + ';'; let api_st = cookie.match(/(kuaishou.api_st=[\w\-]+)/)[1] + ';';
let did = cookie.match(/(did=[\w\-]+)/)[1] + ';';
this.index = ++index; this.index = ++index;
this.cookie = this.cookie =
'kpn=NEBULA; kpf=ANDROID_PHONE; did=ANDROID_' + 'kpn=NEBULA; kpf=ANDROID_PHONE; '+did+' ver=9.10; appver=9.10.40.2474; language=zh-cn; countryCode=CN; sys=ANDROID_5.1; client_key=2ac2a76d; ' +
randomString(16) +
'; ver=9.10; appver=9.10.40.2474; language=zh-cn; countryCode=CN; sys=ANDROID_5.1; client_key=2ac2a76d; ' +
api_st; api_st;
this.name = this.index; this.name = this.index;
this.valid = false; this.valid = false;
@ -175,7 +174,7 @@ class ksUser {
} }
} }
/* //开箱子,1金币懒得搞 //开箱子,1金币懒得搞
async openBox(_0x412555) { async openBox(_0x412555) {
let _0x513362 = let _0x513362 =
'https://nebula.kuaishou.com/rest/n/nebula/box/explore?isOpen=' + 'https://nebula.kuaishou.com/rest/n/nebula/box/explore?isOpen=' +
@ -221,7 +220,7 @@ class ksUser {
: console.log( : console.log(
'🎉' + this.name + '=>|查询宝箱状态失败:' + _0x15220b.error_msg '🎉' + this.name + '=>|查询宝箱状态失败:' + _0x15220b.error_msg
); );
} */ }
@ -378,7 +377,7 @@ 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.openBox(false); await u.openBox(false);
} }
console.log('\n============== 🎉账户情况🎉 =============='); console.log('\n============== 🎉账户情况🎉 ==============');
for (let u of CurrentUser) { for (let u of CurrentUser) {

Loading…
Cancel
Save