mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-23 02:48:44 +08:00
Merge pull request #40 from shgdym/main
This commit is contained in:
commit
092c743bde
@ -156,6 +156,7 @@ async function jdFruit() {
|
|||||||
try {
|
try {
|
||||||
await initForFarm();
|
await initForFarm();
|
||||||
if ($.farmInfo.farmUserPro) {
|
if ($.farmInfo.farmUserPro) {
|
||||||
|
console.log(`\n【京东账号${$.index}(${$.UserName})的${$.name}好友互助码】${$.farmInfo.farmUserPro.shareCode}\n`);
|
||||||
jdFruitShareArr.push($.farmInfo.farmUserPro.shareCode)
|
jdFruitShareArr.push($.farmInfo.farmUserPro.shareCode)
|
||||||
await GetCollect();
|
await GetCollect();
|
||||||
message = `【水果名称】${$.farmInfo.farmUserPro.name}\n`;
|
message = `【水果名称】${$.farmInfo.farmUserPro.name}\n`;
|
||||||
@ -1143,7 +1144,6 @@ async function duck() {
|
|||||||
}
|
}
|
||||||
async function GetCollect() {
|
async function GetCollect() {
|
||||||
try {
|
try {
|
||||||
console.log(`\n【京东账号${$.index}(${$.UserName})的${$.name}好友互助码】`);
|
|
||||||
newShareCodes = [];
|
newShareCodes = [];
|
||||||
shareCodesArr = [];
|
shareCodesArr = [];
|
||||||
|
|
||||||
@ -1167,7 +1167,7 @@ function readShareCode(code) {
|
|||||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||||
} else {
|
} else {
|
||||||
if (data) {
|
if (data) {
|
||||||
console.log(`随机取20个码放到您固定的互助码后面(不影响已有固定互助)`)
|
console.log(`随机取20个码来助力`)
|
||||||
data = JSON.parse(data);
|
data = JSON.parse(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user