mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-05-07 03:48:44 +08:00
Merge pull request #73 from shgdym/ma1n
This commit is contained in:
commit
c516e05b7a
@ -360,9 +360,9 @@ function randomString(e) {
|
|||||||
//格式化助力码
|
//格式化助力码
|
||||||
function shareCodesFormat() {
|
function shareCodesFormat() {
|
||||||
return new Promise(async resolve => {
|
return new Promise(async resolve => {
|
||||||
// console.log(`第${$.index}个京东账号的助力码:::${$.shareCodesArr[$.index - 1]}`)
|
console.log(`第${$.index}个京东账号的ssss助力码:::${$.shareCodes[$.index - 1]}`)
|
||||||
$.newShareCodes = [];
|
$.newShareCodes = [];
|
||||||
const readShareCodeRes = await readShareCode();
|
const readShareCodeRes = await readShareCode($.shareCodes[$.index - 1]);
|
||||||
if (readShareCodeRes && readShareCodeRes.code === 200) {
|
if (readShareCodeRes && readShareCodeRes.code === 200) {
|
||||||
$.newShareCodes = [...new Set([...(readShareCodeRes.data || []), ...inviteCodes])];
|
$.newShareCodes = [...new Set([...(readShareCodeRes.data || []), ...inviteCodes])];
|
||||||
}
|
}
|
||||||
@ -371,10 +371,10 @@ function shareCodesFormat() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function readShareCode() {
|
function readShareCode(code) {
|
||||||
return new Promise(async resolve => {
|
return new Promise(async resolve => {
|
||||||
console.log(`当前使用助力池${JD_ZLC_URL}`)
|
console.log(`当前使用助力池${JD_ZLC_URL}`)
|
||||||
$.get({ url: JD_ZLC_URL + `/city` , timeout: 10000, }, (err, resp, data) => {
|
$.get({ url: JD_ZLC_URL + `/city?code=` + $.shareCodes[$.index - 1], timeout: 10000, }, (err, resp, data) => {
|
||||||
try {
|
try {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(`${JSON.stringify(err)}`)
|
console.log(`${JSON.stringify(err)}`)
|
||||||
|
Loading…
Reference in New Issue
Block a user