Browse Source

更新fqkk的消息

main
haptear 3 years ago
parent
commit
008a4aa511
  1. 10
      fqkk.js

10
fqkk.js

@ -98,21 +98,19 @@ class UserInfo {
await httpRequest('post', urlObject) await httpRequest('post', urlObject)
if (!httpResult || httpResult.statusCode != 200) { this.flag = false; return; } if (!httpResult || httpResult.statusCode != 200) { this.flag = false; return; }
let result = JSON.parse(httpResult.body); let result = JSON.parse(httpResult.body);
let message="";
if (!result) return if (!result) return
//console.log(result) //console.log(result)
if (result.data) { if (result.data) {
console.log(`账号${this.id} 本轮剩余${result.data.infoView.rest}可读,今日已读${result.data.infoView.num},今日收益${result.data.infoView.score}`) console.log(`账号${this.id} 本轮剩余${result.data.infoView.rest}可读,今日已读${result.data.infoView.num},今日收益${result.data.infoView.score}`)
if (result.data.infoView.msg) { if (result.data.infoView.msg) {
let str1 = result.data.infoView.msg.replace(/<.*?>/g, '') message = result.data.infoView.msg.replace(/<.*?>/g, '')
console.log(str1); console.log(message);
} }
if (result.data.infoView.rest == 0) if (result.data.infoView.rest == 0)
this.flag = false; this.flag = false;
else notifyStr = `账号${this.id} \n本轮剩余${result.data.infoView.rest}可读 \n 今日已读${result.data.infoView.num} \n 今日收益${result.data.infoView.score}\n ${message}`
{
notifyStr=`账号${this.id} \n本轮剩余${result.data.infoView.rest}可读 \n 今日已读${result.data.infoView.num} \n 今日收益${result.data.infoView.score}`
showmsg() showmsg()
}
} else { } else {
console.log(`查询今日阅读情况失败`) console.log(`查询今日阅读情况失败`)
console.log(result) console.log(result)

Loading…
Cancel
Save