Skip to content

Commit 77814a1

Browse files
committed
1 parent 09e17a6 commit 77814a1

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

‎Task/telecomInfinity.js‎

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
更新时间: 2028-10-12 18:05
2+
更新时间: 2020-10-12 20:05
33
1.根据原版脚本修改,增加上月账单信息,需重新获取Cookie,打开app即可
44
2.适合流量畅享套餐使用,其他套餐,自行测试,此项仅供测试
55
3.可能因地区不同,脚本不一定适用
@@ -62,22 +62,25 @@ var requests = {
6262
url: "https://e.189.cn/store/user/balance_new.do",
6363
headers: {
6464
"authToken": AUTHTOKEN,
65-
"type": "alipayMiniApp"
65+
"type": "alipayMiniApp",
66+
"User-Agent": "TYUserCenter/2.8 (iPhone; iOS 14.0; Scale/3.00)"
6667
},
67-
method: "GET"
68+
body: "t=tysuit",
69+
method: "POST"
6870
},
6971
info: {
7072
url: "https://e.189.cn/store/user/getExtInfo.do",
7173
headers: {
7274
"authToken": AUTHTOKEN,
73-
"type": "alipayMiniApp"
75+
"type": "alipayMiniApp",
76+
// "Cookie": COOKIE
7477
},
7578
method: "GET"
7679
},
7780
bill: {
7881
url: `https://e.189.cn/store/user/bill.do?year=${Y}&month=${M}&t=tysuit`,
7982
headers: {
80-
"Cookie": COOKIE,
83+
"Cookie": COOKIE
8184
},
8285
method: "GET"
8386
}
@@ -212,9 +215,9 @@ function notify(data, balance, exdata, bldata) {
212215
for ( Voiceiterm of VoiceArr)
213216
voiceAmount = Voiceiterm.ratableAmount,
214217
voiceBalance = Voiceiterm.balanceAmount,
215-
voiceUsage = Voiceiterm.usageAmount;
218+
voiceUsage = Voiceiterm.usageAmount
216219
}
217-
voice = "【通话】已用: " + voiceUsage + "分钟 剩余: " + voiceBalance + "分钟 合计: " + voiceAmount + "分钟"
220+
voice = "【通话】已用: " + voiceUsage + "分钟 剩余: " + voiceBalance + "分钟 合计: " + voiceAmount + "分钟";
218221
message += "\n" + voice; //语音
219222

220223
if (item.nameType == "331101") {
@@ -237,8 +240,8 @@ function notify(data, balance, exdata, bldata) {
237240
console.log("查询错误,错误原因:" + err + '\n套餐响应数据:' + JSON.stringify(data) + '\n请将以上数据机主姓名删除后反馈给作者')
238241
}; //以上为套餐用量
239242

240-
241-
message += "\n" + "【话费】剩余: " + (parseInt(balance.totalBalanceAvailable) / 100).toFixed(2) + "元"; //话费余额
243+
//console.log(balance) //话费余额
244+
message += "\n" + "【话费】剩余: " + (parseInt(balance.totalBalanceAvailable) / 100).toFixed(2) + "元";
242245

243246
//console.log(bldata.items) //账单信息
244247
try {

0 commit comments

Comments
 (0)