修复
This commit is contained in:
@ -61,6 +61,7 @@ function generateQrcode() {
|
|||||||
const url = 'https://plogin.m.jd.com/cgi-bin/m/tmauth?appid=300&client_type=m&token=' + token;
|
const url = 'https://plogin.m.jd.com/cgi-bin/m/tmauth?appid=300&client_type=m&token=' + token;
|
||||||
qrcode.generate(url, {small: true}); // 输出二维码
|
qrcode.generate(url, {small: true}); // 输出二维码
|
||||||
console.log("请打开 京东APP 扫码登录(二维码有效期为3分钟)");
|
console.log("请打开 京东APP 扫码登录(二维码有效期为3分钟)");
|
||||||
|
console.log(`\n\n注:如扫描不到,请使用工具(例如在线二维码工具:https://cli.im)手动生成如下url二维码\n\n${url}\n\n`);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
$.logErr(e, resp)
|
$.logErr(e, resp)
|
||||||
|
@ -622,21 +622,25 @@ function getSpecialJoy() {
|
|||||||
data = JSON.parse(data);
|
data = JSON.parse(data);
|
||||||
if (data['resultCode'] === '0') {
|
if (data['resultCode'] === '0') {
|
||||||
if (data.data) {
|
if (data.data) {
|
||||||
message += '五福汪情况:'
|
message += '五福汪:'
|
||||||
for (let item of data['data']) {
|
if (data['data'] && data['data'].length > 0) {
|
||||||
if (item['joyId'] === 1003) {
|
for (let item of data['data']) {
|
||||||
message += `多多JOY(${item['count']}只) `
|
if (item['joyId'] === 1003) {
|
||||||
} else if (item['joyId'] === 1004) {
|
message += `多多JOY(${item['count']}只) `
|
||||||
message += `快乐JOY(${item['count']}只) `
|
} else if (item['joyId'] === 1004) {
|
||||||
} else if (item['joyId'] === 1005) {
|
message += `快乐JOY(${item['count']}只) `
|
||||||
message += `好物JOY(${item['count']}只) `
|
} else if (item['joyId'] === 1005) {
|
||||||
} else if (item['joyId'] === 1006) {
|
message += `好物JOY(${item['count']}只) `
|
||||||
message += `省钱JOY(${item['count']}只) `
|
} else if (item['joyId'] === 1006) {
|
||||||
} else if (item['joyId'] === 1007) {
|
message += `省钱JOY(${item['count']}只) `
|
||||||
message += `东东JOY(${item['count']}只)`
|
} else if (item['joyId'] === 1007) {
|
||||||
} else {
|
message += `东东JOY(${item['count']}只)`
|
||||||
message += `暂无`
|
} else {
|
||||||
|
message += `暂无`
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
message += `暂无`;
|
||||||
}
|
}
|
||||||
if (data['data'].length >= 5) {
|
if (data['data'].length >= 5) {
|
||||||
$.msg($.name, '', `京东账号 ${$.index}${$.nickName}\n恭喜你,已集成五福汪可合成分红JOY了`)
|
$.msg($.name, '', `京东账号 ${$.index}${$.nickName}\n恭喜你,已集成五福汪可合成分红JOY了`)
|
||||||
|
Reference in New Issue
Block a user