Skip to content

Commit 04ddfb1

Browse files
author
ziye66666
authored
Update duokandian.js
1 parent 4b04c63 commit 04ddfb1

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

Task/duokandian.js

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,18 @@ duokandianheaderVal = {
7676
'Accept-Language': `zh-Hans-CN;q=1.0`
7777
};
7878

79-
duokandianspdhheaderVal = {"Accept": "application/json, text/plain, */*","Accept-Encoding": "gzip, deflate","Accept-Language": "zh-cn","Connection": "close","Content-Length": "8","Content-Type": "application/json;charset=utf-8","Host": "dkd-api.dysdk.com","Origin": "http://dkd-api.dysdk.com","Referer": "http://dkd-api.dysdk.com/index.html","User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 14_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148"};
79+
duokandianspdhheaderVal = {
80+
"Accept": "application/json, text/plain, */*",
81+
"Accept-Encoding": "gzip, deflate",
82+
"Accept-Language": "zh-cn",
83+
"Connection": "close",
84+
"Content-Length": "8",
85+
"Content-Type": "application/json;charset=utf-8",
86+
"Host": "dkd-api.dysdk.com",
87+
"Origin": "http://dkd-api.dysdk.com",
88+
"Referer": "http://dkd-api.dysdk.com/index.html",
89+
"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 14_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148"
90+
};
8091

8192

8293
if ($.isNode()) {
@@ -302,7 +313,7 @@ async function all() {
302313
if ($.lottoindex.data && $.lottoindex.data.times >= 1) {
303314
await lotto(); //转盘抽奖
304315
}
305-
if ($.lottoindex.data && $.lottoindex.data.chip >= 4 ) {
316+
if ($.lottoindex.data && $.lottoindex.data.chip >= 4) {
306317
await chip(); //碎片兑换
307318
}
308319

@@ -626,12 +637,12 @@ function lotto(timeout = 0) {
626637
function chip(timeout = 0) {
627638
return new Promise((resolve) => {
628639
setTimeout(() => {
629-
640+
630641
let url = {
631642
url: `http://dkd-api.dysdk.com/lotto/convert?${duokandianbodyVal}`,
632643
headers: duokandianspdhheaderVal,
633644
body: `{"id":4}`,
634-
645+
635646
}
636647
$.post(url, async (err, resp, data) => {
637648
try {
@@ -979,7 +990,7 @@ function video(timeout = 0) {
979990
console.log(`【红包奖励】:共领取${ABB}次红包奖励,共${ADD}金币\n`);
980991
$.message += `【红包奖励】:共领取${ABB}次红包奖励,共${ADD}金币\n`
981992
}
982-
if ($.videoyz&&$.videoyz.data.status == 4) {
993+
if ($.videoyz && $.videoyz.data.status == 4) {
983994
console.log(`【红包奖励】:已完成\n`);
984995
$.message += `【红包奖励】:已完成\n`
985996
}

0 commit comments

Comments
 (0)