Browse Source

更新提现

main
haptear 3 years ago
parent
commit
06b80b6a84
  1. 199
      ks/ksjsb.js

199
ks/ksjsb.js

@ -4,7 +4,8 @@ export ksjshd='ck1
ck2 ck2
ck3' ck3'
ck回车符分割 ck回车符分割
ksWithdrawTime 提现时间
ksjsbAggressive 最大化提现
*/ */
const $ = new Env('快手极速版低保'); const $ = new Env('快手极速版低保');
@ -169,6 +170,147 @@ class ksUser {
} }
async withdraw(_0x543a47) {
if (!this.bindAlipay && !this.bindWechat) {
console.log('账号[' + this.name + ']未绑定提现账号,不执行提现');
return;
}
let _0x11aa57 = parseInt(_0x543a47 * 100),
_0x551907 = this.bindAlipay ? 'ALIPAY' : 'WECHAT',
_0x4281dd = _0x551907 == 'ALIPAY' ? '支付宝' : '微信',
_0x45b85a = _0x551907 == 'ALIPAY' ? this.alipay : this.wechat,
_0x5540cb = 'https://www.kuaishoupay.com/pay/account/h5/withdraw/apply',
_0x36e14a =
'account_group_key=NEBULA_CASH_ACCOUNT&mobile_code=&fen=' +
_0x11aa57 +
'&provider=' +
_0x551907 +
'&total_fen=' +
_0x11aa57 +
'&commission_fen=0&third_account=' +
_0x551907 +
'&attach=&biz_content=&session_id=',
_0x2afd84 = getOptions(_0x5540cb, this.cookie, _0x36e14a);
await doRequest('post', _0x2afd84);
let _0x550f3b = res;
if (!_0x550f3b) {
return;
}
_0x550f3b.result == 'SUCCESS'
? console.log(
'账号' +
this.index +
'[' +
this.name +
']提现' +
_0x543a47 +
'元到' +
_0x4281dd +
'[' +
_0x45b85a +
']成功'
)
: console.log(
'账号' +
this.index +
'[' +
this.name +
']提现' +
_0x543a47 +
'元到' +
_0x4281dd +
'[' +
_0x45b85a +
']失败:' +
_0x550f3b.msg
);
}
async withdrawOverview() {
let _0x2236be =
'https://nebula.kuaishou.com/rest/n/nebula/outside/withdraw/overview?appver=10.2.20.2021',
_0x564ca9 = '',
_0x418fbc = getOptions(_0x2236be, this.cookie, _0x564ca9);
await doRequest('get', _0x418fbc);
let _0x2edb23 = res;
if (!_0x2edb23) {
return;
}
if (_0x2edb23.result == 1) {
if (_0x2edb23.data.isLimit == true) {
console.log('账号[' + this.name + ']今天已提现');
return;
}
let _0x57539e = parseFloat(this.cashBalance);
if (ksjsbAggressive == 1) {
if (_0x57539e < 0.3) {
console.log('账号[' + this.name + ']余额不足0.3元,不提现');
} else {
let _0xc81e7b = Math.floor(_0x57539e * 10) / 10;
_0xc81e7b = _0xc81e7b > 50 ? 50 : _0xc81e7b;
console.log(
'账号[' + this.name + ']准备最大化提现' + _0xc81e7b + '元'
);
await $.wait(200);
await this.withdraw(_0xc81e7b);
}
} else {
if (!ksjsbCash) {
for (let _0x5da979 of _0x2edb23.data.enWithdrawList.sort(function (
_0x5357e2,
_0xc5d50f
) {
return _0xc5d50f - _0x5357e2;
})) {
if (_0x57539e >= parseFloat(_0x5da979)) {
console.log('账号[' + this.name + ']准备提现' + _0x5da979 + '元');
await $.wait(200);
await this.withdraw(_0x5da979);
return;
}
}
console.log(
'账号[' +
this.name +
']余额不足,可提现额度:' +
_0x2edb23.data.enWithdrawList.join(',')
);
} else {
_0x57539e >= parseFloat(ksjsbCash)
? (console.log(
'账号[' + this.name + ']准备提现' + ksjsbCash + '元'
),
await $.wait(200),
await this.withdraw(ksjsbCash))
: console.log(
'账号[' + this.name + ']余额不足' + ksjsbCash + '元,不提现'
);
}
}
} else {
console.log(
'账号[' + this.name + ']查询提现列表失败:' + _0x2edb23.error_msg
);
}
}
async accountOverview() { async accountOverview() {
let _0x512fe7 = let _0x512fe7 =
@ -363,7 +505,41 @@ class ksUser {
} }
async bindInfo() {
let _0x328bd6 =
'https://www.kuaishoupay.com/pay/account/h5/provider/bind_info',
_0x2f2b1b = 'account_group_key=NEBULA_CASH_ACCOUNT&bind_page_type=3',
_0x32746d = getOptions(_0x328bd6, this.cookie, _0x2f2b1b);
await doRequest('post', _0x32746d);
let _0x4d5493 = res;
if (!_0x4d5493) {
return;
}
if (_0x4d5493.result == 'SUCCESS') {
let _0x4015b0 = '未绑定支付宝',
_0x3840b8 = '未绑定微信';
_0x4d5493.alipay_bind == true &&
((this.bindAlipay = true),
(this.alipay = _0x4d5493.alipay_nick_name),
(_0x4015b0 = '已绑定支付宝[' + _0x4d5493.alipay_nick_name + ']'));
_0x4d5493.wechat_bind == true &&
((this.bindWechat = true),
(this.wechat = _0x4d5493.wechat_nick_name),
(_0x3840b8 = '已绑定微信[' + _0x4d5493.wechat_nick_name + ']'));
console.log('账号[' + this.name + ']' + _0x3840b8 + ',' + _0x4015b0);
} else {
console.log(
'账号[' +
this.name +
']查询提现账号绑定情况失败:' +
_0x4d5493.error_msg
);
}
}
@ -417,12 +593,26 @@ class ksUser {
await u.openBox(false); await u.openBox(false);
} }
console.log('\n============== 🎉账户情况🎉 =============='); console.log('\n============== 🎉账户情况🎉 ==============');
let curHours = new Date().getHours();
let tips = '按提现列表自动提现';
if (ksjsbAggressive) {
tips = '最大化提现';
}
if (curHours == ksWithdrawTime) {
console.log(`提现时间,现在设置为${tips}`);
} else {
console.log(`非提现时间,现在设置为${ksWithdrawTime}${tips}`);
}
for (let u of CurrentUser) { for (let u of CurrentUser) {
await u.accountOverview(); await u.accountOverview();
await $.wait(200); await $.wait(200);
await u.accountInfo(); await u.accountInfo();
await $.wait(200); await $.wait(200);
//if (hour==`${ksWithdrawTime}`) await withdrawOverview() if (curHours==`${ksWithdrawTime}`) {
await u.bindInfo();
await $.wait(200);
await u.withdrawOverview()
}
} }
})() })()
@ -494,6 +684,11 @@ function safeGet(data) {
return false; return false;
} }
} }
function _0x1ab8b7(T) {
console["log"](T);
_0x279d25 += T;
_0x279d25 += "\n";
}
function randomString(e = 12) { function randomString(e = 12) {
let t = 'abcdef0123456789', let t = 'abcdef0123456789',
a = t.length, a = t.length,

Loading…
Cancel
Save