|
|
@ -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) |
|
|
|
this.flag = false; |
|
|
|
else |
|
|
|
{ |
|
|
|
notifyStr=`账号${this.id} \n本轮剩余${result.data.infoView.rest}可读 \n 今日已读${result.data.infoView.num} \n 今日收益${result.data.infoView.score}币` |
|
|
|
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) |
|
|
|