更新于 07-20 03:31

This commit is contained in:
root
2021-07-20 03:31:46 -04:00
parent d95dd733c0
commit 8314962a75
4 changed files with 1019 additions and 699 deletions

7
AuthorCode/wealth_island.json Executable file
View File

@ -0,0 +1,7 @@
[
"1171AA00CA6E5BE1D46E124F83095A95E635B95357E642AC3B057DBE8BEAFC22",
"F45D509AF300818D11AE0234B6F127A0F87F0018C1F5660D256560ABC1DC8714",
"FD5574925E10FBC6A8B5A23FC6CFFA7F932A89278D58545CC51FCE229FF8F8C7",
"C88BA90B05A6517B9AF99626517A2B67BAE94FD21B1DFAAD2A8F43B8E80D2D92",
"E94B9CECAB5EF42738E021B76DF5FFC49420DF3FF88EF046DAFF0884F5C669AB"
]

View File

@ -119,9 +119,35 @@ function TotalBean(cookie: string) {
})
}
function requireConfig() {
let cookiesArr: string[] = []
return new Promise(resolve => {
console.log('开始获取配置文件\n')
const jdCookieNode = require('./jdCookie.js');
Object.keys(jdCookieNode).forEach((item) => {
if (jdCookieNode[item]) {
cookiesArr.push(jdCookieNode[item])
}
})
console.log(`${cookiesArr.length}个京东账号\n`)
resolve(cookiesArr)
})
}
function wait(t: number) {
return new Promise<void>(resolve => {
setTimeout(() => {
resolve()
}, t)
})
}
export default USER_AGENT
export {
TotalBean,
getBeanShareCode,
getFarmShareCode,
requireConfig,
wait,
getRandomNumberByRange
}

File diff suppressed because one or more lines are too long

10
tool/account.json Executable file
View File

@ -0,0 +1,10 @@
[
{
"pt_pin": "CK中pt_pin的值",
"remarks": "备注"
},
{
"pt_pin": "jd_abcdef",
"remarks": "二奶"
}
]