This commit is contained in:
lxk0301
2021-02-04 16:43:20 +08:00
parent 0aeccb8c04
commit 1c85b329be
2 changed files with 19 additions and 14 deletions

View File

@@ -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)