Skip to content

Commit 34a3e9d

Browse files
committed
更新[米读],将通知时间改为半小时
1 parent aae88cc commit 34a3e9d

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

‎midu/miduRead.js‎

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
// 链接`http://html34.qukantoutiao.net/qpr2/bBmQ.html?pid=5eb14518`
33
// 农妇山泉 -> 有点咸
44

5+
/********************
6+
* 1、 为了方便任意脚本可以清除Cookie, 任意一个脚本将DeleteCookie = true都可以生效
7+
* 2、 debug模式可以在Surge&&Qx中开启,方便你判定多用户及脚本运行情况
8+
* 3、 Qx==>dubug:miduRede构造请求
9+
* 4、 Surge==>debug:load脚本->evalaute
10+
* 5、脚本默认每半小时通知一次,建议自己先debug看看是否成功
11+
*********************/
512

613
const DeleteCookie = false // 清除Cookie,将下方改为true,默认false
714

@@ -68,7 +75,7 @@ function double() {
6875
initial()
6976
DualAccount = false
7077
if (senku.getdata('tokenMidu_read2')) {
71-
readTimeheaderVal = senku.getdata('senku_readTimeheader_midu')
78+
readTimeheaderVal = senku.getdata('senku_readTimeheader_midu2')
7279
readTimebodyVal = senku.getdata('senku_readTimebody_midu2')
7380
signbodyVal = senku.getdata('senku_signbody_midu2')
7481
all()
@@ -132,19 +139,17 @@ function showmsg() {
132139
const readTotalMinute = signinfo.readTime.data.readTotalMinute
133140
const total_coin = signinfo.readTime.data.total_coin
134141
coin == 0 ? detail += `` : detail += `【阅读时长】获得${coin}💰`
135-
if (readTotalMinute % 20 == 0) {
136-
readTotalMinute ? detail += ` 阅读时长${readTotalMinute / 2}分钟,该账户:${total_coin}💰` : detail += `该账户:${total_coin}💰`
137-
} else if (senku.getdata('debug') == 'true') {
138-
readTotalMinute ? detail += ` 阅读时长${readTotalMinute / 2}分钟,该账户:${total_coin}💰` : detail += `该账户:${total_coin}💰`
139-
}
142+
readTotalMinute ? detail += ` 阅读时长${readTotalMinute / 2}分钟,该账户:${total_coin}💰` : detail += `该账户:${total_coin}💰`
140143
} else if (signinfo.readTime.code != 0) {
141144
detail += `【阅读时长】错误代码${signinfo.readTime.code},错误信息${signinfo.readTime.message}`
142145
} else {
143146
detail += '【阅读时长】失败'
144147
}
145-
if (detail) {
148+
if (senku.getdata('debug') == 'true' || detail && signinfo.readTime.data.readTotalMinute % 60 == 0) {
146149
senku.msg(cookieName + ` 用户:${signinfo.userInfo.data.nickname}`, subTitle, detail)
147-
} else senku.msg(cookieName + ` 用户:${signinfo.userInfo.data.nickname}`, '阅读结果', '时间未到')
150+
} else if (senku.getdata('debug') == 'true' || signinfo.readTime.data.readTotalMinute % 60 == 0) {
151+
senku.msg(cookieName + ` 用户:${signinfo.userInfo.data.nickname}`, '阅读结果', '时间未到')
152+
}
148153
if (DualAccount) double()
149154
senku.done()
150155
resolve()

0 commit comments

Comments
 (0)