Browse Source

更新fqkk的消息

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

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

Loading…
Cancel
Save