获取京东昵称API最近经常错误,故邀请码打印信息全部改成显示用户名的

This commit is contained in:
lxk0301
2021-03-22 09:36:12 +08:00
parent b2014f0444
commit 0a45f20cc2
14 changed files with 27 additions and 25 deletions

View File

@@ -78,7 +78,7 @@ function getJdFactory() {
$.taskVos.map((item) => {
if (item.taskType === 14) {
console.log(
`【京东账号${$.index}${$.nickName || $.UserName})东东工厂】${item.assistTaskDetailVo.taskToken}`
`【京东账号${$.index}${$.UserName})东东工厂】${item.assistTaskDetailVo.taskToken}`
);
}
});
@@ -142,7 +142,7 @@ function getJxFactory(){
$.commodityDimId = production.commodityDimId;
$.encryptPin = data.user.encryptPin;
// subTitle = data.user.pin;
console.log(`【京东账号${$.index}${$.nickName || $.UserName})京喜工厂】${data.user.encryptPin}`);
console.log(`【京东账号${$.index}${$.UserName})京喜工厂】${data.user.encryptPin}`);
}
} else {
$.unActive = false; //标记是否开启了京喜活动或者选购了商品进行生产
@@ -208,9 +208,9 @@ function getJxNc(){
'joinnum': data.joinnum,
};
console.log(`注意:京喜农场 种植种子发生变化的时候,互助码也会变!!`);
console.log(`【京东账号${$.index}${$.nickName || $.UserName})京喜农场】` + JSON.stringify(shareCodeJson));
console.log(`【京东账号${$.index}${$.UserName})京喜农场】` + JSON.stringify(shareCodeJson));
} else {
console.log(`【京东账号${$.index}${$.nickName || $.UserName})京喜农场】未选择种子,请先去京喜农场选择种子`);
console.log(`【京东账号${$.index}${$.UserName})京喜农场】未选择种子,请先去京喜农场选择种子`);
}
}
} else {
@@ -279,7 +279,7 @@ function getJdPet(){
}
console.log(
`【京东账号${$.index}${$.nickName || $.UserName})京东萌宠】${$.petInfo.shareCode}`
`【京东账号${$.index}${$.UserName})京东萌宠】${$.petInfo.shareCode}`
);
} else if (initPetTownRes.code === "0") {
@@ -310,7 +310,7 @@ async function getJdZZ() {
data = JSON.parse(data);
$.taskList = data.data.taskDetailResList;
if ($.taskList.filter(item => !!item && item['taskId']=== 3) && $.taskList.filter(item => !!item && item['taskId']=== 3).length) {
console.log(`【京东账号${$.index}${$.nickName || $.UserName})的京东赚赚好友互助码】${$.taskList.filter(item => !!item && item['taskId']=== 3)[0]['itemId']}`);
console.log(`【京东账号${$.index}${$.UserName})的京东赚赚好友互助码】${$.taskList.filter(item => !!item && item['taskId']=== 3)[0]['itemId']}`);
}
}
}
@@ -409,7 +409,7 @@ async function getPlantBean() {
if ($.plantBeanIndexResult.code === "0") {
const shareUrl = $.plantBeanIndexResult.data.jwordShareInfo.shareUrl;
$.myPlantUuid = getParam(shareUrl, "plantUuid");
console.log(`【京东账号${$.index}${$.nickName || $.UserName})种豆得豆】${$.myPlantUuid}`);
console.log(`【京东账号${$.index}${$.UserName})种豆得豆】${$.myPlantUuid}`);
} else {
console.log(
@@ -474,7 +474,7 @@ async function getJDFruit() {
await initForFarm();
if ($.farmInfo.farmUserPro) {
console.log(
`【京东账号${$.index}${$.nickName || $.UserName})京东农场】${$.farmInfo.farmUserPro.shareCode}`
`【京东账号${$.index}${$.UserName})京东农场】${$.farmInfo.farmUserPro.shareCode}`
);
} else {
@@ -520,7 +520,7 @@ async function getJoy(){
if (safeGet(data)) {
data = JSON.parse(data);
if (data.success && data.data && data.data.userInviteCode) {
console.log(`【京东账号${$.index}${$.nickName || $.UserName}crazyJoy】${data.data.userInviteCode}`)
console.log(`【京东账号${$.index}${$.UserName}crazyJoy】${data.data.userInviteCode}`)
}
}
}
@@ -555,7 +555,7 @@ async function getSgmh(timeout = 0) {
data = JSON.parse(data);
if (data.data.bizCode === 0) {
const invites = data.data.result.taskVos.filter(item => item['taskName'] === '邀请好友助力');
console.log(`【京东账号${$.index}${$.nickName || $.UserName})闪购盲盒】${invites && invites[0]['assistTaskDetailVo']['taskToken']}`)
console.log(`【京东账号${$.index}${$.UserName})闪购盲盒】${invites && invites[0]['assistTaskDetailVo']['taskToken']}`)
}
} catch (e) {
$.logErr(e, resp);
@@ -596,7 +596,7 @@ function getCFD(showInvite = true) {
strMyShareId,
strPin,
} = JSON.parse(data);
console.log(`【京东账号${$.index}${$.nickName || $.UserName})财富岛】${strMyShareId}`)
console.log(`【京东账号${$.index}${$.UserName})财富岛】${strMyShareId}`)
} catch (e) {
$.logErr(e, resp);
} finally {
@@ -632,7 +632,7 @@ function getJdCash() {
if (safeGet(data)) {
data = JSON.parse(data);
if(data.code===0 && data.data.result){
console.log(`【京东账号${$.index}${$.nickName || $.UserName})签到领现金】${data.data.result.inviteCode}`);
console.log(`【京东账号${$.index}${$.UserName})签到领现金】${data.data.result.inviteCode}`);
}
}
}