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