forked from sngxpro/AutoSyncScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzscdbSign.js
More file actions
365 lines (239 loc) · 7.71 KB
/
zscdbSign.js
File metadata and controls
365 lines (239 loc) · 7.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
/*
@𝐗𝐢𝐝𝐍 𝐃𝐃 感谢红鲤鱼大佬
//++++++++++++++++++++++++++++++++-
说明:
追书畅读版 签到可以获得金币兑换现金 商店下载软件
圈x获取不到ck就把body改成header
打开软件签到获取ck 签过到可能获取不到ck
获取视频ck时要换掉去广告规则 要不然获取不到
共计4个ck 签到 分享 视频奖励 账户信息
商店下架了软件 所以搜不到
surge:远程
追书畅读版 = type=http-request,pattern=^https:\/\/.+zhuishushenqi\.com\/*,requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/XidNDD/2020scripts/master/zscdbSign.js
定时 追书畅读版 = type=cron,cronexp=0 10 0 * * *,script-path=https://raw.githubusercontent.com/XidNDD/2020scripts/master/zscdbSign.js
圈x:远程
签到获取ck
^https:\/\/.+zhuishushenqi\.com\/* url script-request-body https://raw.githubusercontent.com/XidNDD/2020scripts/master/zscdbSign.js
定时 0 10 0 * * * https://raw.githubusercontent.com/XidNDD/2020scripts/master/zscdbSign.js, tag=追书畅读版, enabled=true
loon:远程
签到获取ck
http-request ^https:\/\/.+zhuishushenqi\.com\/* script-path=https://raw.githubusercontent.com/XidNDD/2020scripts/master/zscdbSign.js, requires-body=true, timeout=10, tag=追书畅读版
定时 cron "0 10 0 * * *" script-path=https://raw.githubusercontent.com/XidNDD/2020scripts/master/zscdbSign.js
MITM= *.zhuishushenqi.com
*/
const $XidN = XidN();
const logs=0;//设置0关闭日志,1开启日志
//++++++++++++++++++++++++++++++++-
var dd="追书畅读版APP";
//++++++++++++++++++++++++++++++++
function main()
{
XidN_degin();}
async function XidN_degin()
{
let a0=await XidN_Sign();
let a1=await XidN_adver();
let a2=await XidN_tasks();
let a3=await XidN_task();
log(dd,"",a0+a1+a2+a3);
}
function XidN_Sign()
{
return new Promise((resolve, reject) => {
var result1="每日打卡🏝🏝";
var result2="";
var userurl=$XidN.read("userurlname");
var userhd=$XidN.read("userhdname");
const llUrl1={
url:userurl,
headers:JSON.parse(userhd),
timeout:60000};
$XidN.get(llUrl1,function(error, response, data) {
if (logs==1)console.log(data)
var obj=JSON.parse(data);
if(obj.ok== true)
result2="✅,"+obj.message+",奖励"+obj.gold+"💰金币";
else
if(obj.ok== false)
result2="每日只能签到一次哦!!!";
else
result2="签到失败获取cookie";
result2="<"+result1+">"+result2+"\n";
console.log(result2);
resolve(result2);
})
})
}
function XidN_adver()
{
return new Promise((resolve, reject) => {
var result1="看视频拆红包🧧";
var result2="";
var adverturl=$XidN.read("adverturlname");
var userhd=$XidN.read("userhdname");
var advertbd=$XidN.read("advertbdname");
const llUrl1={
url:adverturl,
headers:JSON.parse(userhd),
body:advertbd,
timeout:60000};
$XidN.post(llUrl1,function(error, response, data) {
if (logs==1)console.log(data)
var obj=JSON.parse(data);
if(obj.ok== true)
result2="✅奖励"+obj.prize.gold+"💰金币";
else
if(obj.ok== false)
result2="每日只有5次机会哦!!!";
else
result2="失败获取cookie";
result2="<"+result1+">"+result2+"\n";
console.log(result2);
resolve(result2);
})
})
}
function XidN_tasks()
{
return new Promise((resolve, reject) => {
var result1="每日分享奖励💫";
var result2="";
var tasksurl=$XidN.read("tasksurlname");
var userhd=$XidN.read("userhdname");
var tasksbd=$XidN.read("tasksbdname");
const llUrl1={
url:tasksurl,
headers:JSON.parse(userhd),
body:tasksbd,
timeout:60000};
$XidN.post(llUrl1,function(error, response, data) {
if (logs==1)console.log(data)
var obj=JSON.parse(data);
if(obj.ok== true)
result2="✅奖励"+obj.data.gold+"💰金币";
else
if(obj.ok== false)
result2="每日分享只有1次机会哦!!!";
else
result2="失败获取cookie";
result2="<"+result1+">"+result2+"\n";
console.log(result2);
resolve(result2);
})
})
}
function XidN_task()
{
return new Promise((resolve, reject) => {
var result1="查询账户信息🔍";
var result2="";
var taskurl=$XidN.read("taskurlname");
var userhd=$XidN.read("userhdname");
const llUrl1={
url:taskurl,
headers:JSON.parse(userhd),
timeout:60000};
$XidN.get(llUrl1,function(error, response, data) {
if (logs==1)console.log(data)
var obj=JSON.parse(data);
if(obj.ok== true)
result2="累计"+obj.info.totalGold+"💰金币"+",累计"+obj.info.balance+"现金💸"+",今日获得"+obj.info.cGold+"💰金币"+"现金"+obj.info.cBalance+"元"+",昨日获得"+obj.info.yGold+"💰金币"+"现金"+obj.info.yBalance+"元";
else
result2="失败获取cookie";
result2="<"+result1+">"+result2+"\n";
console.log(result2);
resolve(result2);
})
})
}
function XidN_zscdb() {
if ($request.headers) {
var urlval = $request.url;
var md_hd=$request.headers;
var md_bd=$request.body;
if(urlval.indexOf("user/do-sign?")>=0)
{
var ao= $XidN.write(urlval,"userurlname");
var bo= $XidN.write(JSON.stringify(md_hd),"userhdname");
if (ao==true&&bo==true)
log(dd,"[获取签到数据]","✅成功");}
else
if(urlval.indexOf("advert/video/lottery?")>=0)
{
var so= $XidN.write(urlval,"adverturlname");
var bo= $XidN.write(md_bd,"advertbdname");
if (bo==true&&so==true)
log(dd,"[获取看视频数据]","✅成功");}
else
if(urlval.indexOf("tasks")>=0)
{
var so= $XidN.write(urlval,"tasksurlname");
var bo= $XidN.write(md_bd,"tasksbdname");
if (bo==true&&so==true)
log(dd,"[获取每日分享数据]","✅成功");}
else
if(urlval.indexOf("account?")>=0)
{
var so= $XidN.write(urlval,"taskurlname");
if (so==true)
log(dd,"[获取账户余额数据]","✅成功");}
}
}
function log(x,y,z){
$XidN.notify(x,y,z);}
function getRandom(start, end, fixed = 0) {
let differ = end - start
let random = Math.random()
return (start + differ * random).toFixed(fixed)
}
if ($XidN.isRequest) {
XidN_zscdb()
$XidN.end()
} else {
main();
$XidN.end()
}
function XidN() {
const isRequest = typeof $request != "undefined"
const isSurge = typeof $httpClient != "undefined"
const isQuanX = typeof $task != "undefined"
const notify = (title, subtitle, message) => {
if (isQuanX) $notify(title, subtitle, message)
if (isSurge) $notification.post(title, subtitle, message)
}
const write = (value, key) => {
if (isQuanX) return $prefs.setValueForKey(value, key)
if (isSurge) return $persistentStore.write(value, key)
}
const read = (key) => {
if (isQuanX) return $prefs.valueForKey(key)
if (isSurge) return $persistentStore.read(key)
}
const get = (options, callback) => {
if (isQuanX) {
if (typeof options == "string") options = { url: options }
options["method"] = "GET"
$task.fetch(options).then(response => {
response["status"] = response.statusCode
callback(null, response, response.body)
}, reason => callback(reason.error, null, null))
}
if (isSurge) $httpClient.get(options, callback)
}
const post = (options, callback) => {
if (isQuanX) {
if (typeof options == "string") options = { url: options }
options["method"] = "POST"
$task.fetch(options).then(response => {
response["status"] = response.statusCode
callback(null, response, response.body)
}, reason => callback(reason.error, null, null))
}
if (isSurge) $httpClient.post(options, callback)
}
const end = () => {
if (isQuanX) isRequest ? $done({}) : ""
if (isSurge) isRequest ? $done({}) : $done()
}
return { isRequest, isQuanX, isSurge, notify, write, read, get, post, end }
};