Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e6b5dc

Browse files
authored
新增VIP天数兑换,日上限6天
1 parent 6ba7f33 commit 4e6b5dc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

dianshijia.js

+20
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
去掉奖励信息随机的BUG奖励,改为固定显示每日0.2元额度。
44
2.12 彻底修复因每日奖励额度接口变动导致奖励额度失效问题!
55
6.24 调整额度为0.4元。由于官方的额度进行了调整,0.2元为当日奖励,0.4元为明日奖励额度,脚本调整获取方式为直接提交明日奖励进行获取。
6+
8.9 新增VIP兑换,每日上限6天,一次兑换+3天
67
78
获取Cookie方法:
89
1.将下方[rewrite_local]和[Task]地址复制的相应的区域,无需添加 hostname,每日7点、12点、20点各运行一次,其他随意
@@ -122,6 +123,7 @@ if (isGetCookie = typeof $request !== 'undefined') {
122123
await getGametime(); // 游戏时长
123124
await total(); // 总计
124125
await cash(); // 现金
126+
await vip();
125127
await cashlist(); // 现金列表
126128
await coinlist(); // 金币列表
127129
if ($.isNode() && process.env.DSJ_NOTIFY_CONTROL && drawalCode == '0') {
@@ -294,6 +296,24 @@ function cash() {
294296
})
295297
}
296298

299+
function vip() {
300+
return new Promise((resolve, reject) => {
301+
$.get({
302+
url: `http://pay.gaoqingdianshi.com/api/v2/product/exchange?code=mianfeiduihuan0003`,
303+
headers: JSON.parse(signheaderVal)
304+
}, (error, response, data) => {
305+
if (logs) $.log(`vip: ${data}\n`)
306+
let vipresult = JSON.parse(data)
307+
if (vipresult.errCode == 0) {
308+
subTitle += '\n【VIP兑换结果】:✅兑换成功+3天'}
309+
subTitle += '\n【VIP兑换结果】:'+vipresult.msg
310+
311+
312+
resolve()
313+
})
314+
})
315+
}
316+
297317
function cashlist() {
298318
return new Promise((resolve, reject) => {
299319
$.get({

0 commit comments

Comments
 (0)