|
|
@ -16,12 +16,11 @@ let res, |
|
|
|
class ksUser { |
|
|
|
constructor(cookie) { |
|
|
|
let api_st = cookie.match(/(kuaishou.api_st=[\w\-]+)/)[1] + ';'; |
|
|
|
let did = cookie.match(/(did=[\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; ' + |
|
|
|
'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; ' + |
|
|
|
api_st; |
|
|
|
this.name = this.index; |
|
|
|
this.valid = false; |
|
|
@ -175,7 +174,7 @@ class ksUser { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/* //开箱子,1金币懒得搞 |
|
|
|
//开箱子,1金币懒得搞
|
|
|
|
async openBox(_0x412555) { |
|
|
|
let _0x513362 = |
|
|
|
'https://nebula.kuaishou.com/rest/n/nebula/box/explore?isOpen=' + |
|
|
@ -221,7 +220,7 @@ class ksUser { |
|
|
|
: console.log( |
|
|
|
'🎉' + this.name + '=>|查询宝箱状态失败:' + _0x15220b.error_msg |
|
|
|
); |
|
|
|
} */ |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -378,7 +377,7 @@ class ksUser { |
|
|
|
console.log('\n=========== 🎉' + u.name + ' 🎉==========='); |
|
|
|
await u.getSignInfo(); |
|
|
|
await $.wait(200); |
|
|
|
//await u.openBox(false);
|
|
|
|
await u.openBox(false); |
|
|
|
} |
|
|
|
console.log('\n============== 🎉账户情况🎉 =============='); |
|
|
|
for (let u of CurrentUser) { |
|
|
|