From 008a4aa511952a69e45007d9eac07631de8701c6 Mon Sep 17 00:00:00 2001 From: haptear Date: Mon, 21 Feb 2022 16:35:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0fqkk=E7=9A=84=E6=B6=88?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fqkk.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/fqkk.js b/fqkk.js index 0f34254..692a262 100644 --- a/fqkk.js +++ b/fqkk.js @@ -98,21 +98,19 @@ class UserInfo { await httpRequest('post', urlObject) if (!httpResult || httpResult.statusCode != 200) { this.flag = false; return; } let result = JSON.parse(httpResult.body); + let message=""; if (!result) return //console.log(result) if (result.data) { console.log(`账号${this.id} 本轮剩余${result.data.infoView.rest}可读,今日已读${result.data.infoView.num},今日收益${result.data.infoView.score}币`) if (result.data.infoView.msg) { - let str1 = result.data.infoView.msg.replace(/<.*?>/g, '') - console.log(str1); + message = result.data.infoView.msg.replace(/<.*?>/g, '') + console.log(message); } - if (result.data.infoView.rest == 0) + if (result.data.infoView.rest == 0) this.flag = false; - else - { - notifyStr=`账号${this.id} \n本轮剩余${result.data.infoView.rest}可读 \n 今日已读${result.data.infoView.num} \n 今日收益${result.data.infoView.score}币` - showmsg() - } + notifyStr = `账号${this.id} \n本轮剩余${result.data.infoView.rest}可读 \n 今日已读${result.data.infoView.num} \n 今日收益${result.data.infoView.score}币 \n ${message}` + showmsg() } else { console.log(`查询今日阅读情况失败`) console.log(result)