forked from lys01/ziye12-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qzdkziye.js
351 lines (218 loc) · 6.96 KB
/
qzdkziye.js
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
/*ziye 圈子打卡
非常重要!!!
微信扫码 https://raw.githubusercontent.com/ziye12/JavaScript/master/qzdkziye.png 进入小程序,登录获取授权,再启动软件获取ck
建议设置6点到23点之间打卡,时间间隔30分钟以上,否则容易封号
2020.9.22
《《《《《《《《《《制作其他打卡js的说明
抓包小程序,然后替换以下内容来制作其他打卡js,
需要替换的内容如下,按顺序替换字符,自己用电脑或者KODE软件替换,KODE下载链接https://apps.apple.com/cn/app/koder-code-editor/id1447489375
wq.inqan.com
圈子打卡
cs = 20
xj = 1
qzdkurl
i=9
qzdk
手动替换
wq\.inqan\.com
制作其他打卡js的说明》》》》》》》》》》》
////////////////////////////////////////正文
使用说明:
一,微信扫码 https://raw.githubusercontent.com/ziye12/JavaScript/master/qzdkziye.png 进入小程序,登录获取授权
二,然后将hostname复制粘贴进配置文件
三,将重写复制到 rewrite_local 下,再进入程序获取ck,建议 放入新建配置片段,获取之后禁用即可
功能如下:
1.每日打卡,设置了开关,完成任务不再打卡
2.打卡币统计,
3.现金统计,自动提现
hostname= wq.inqan.com,
//surge
圈子打卡 = type=http-request,pattern=^https:\/\/wq\.inqan\.com\/*,requires-body=1,max-size=0,script-path= https://raw.githubusercontent.com/ziye12/JavaScript/master/qzdkziye.js
//圈x
https:\/\/wq\.inqan\.com\/* url script-request-header https://raw.githubusercontent.com/ziye12/JavaScript/master/qzdkziye.js
//loon
http-request ^https:\/\/wq\.inqan\.com\/* script-path= https://raw.githubusercontent.com/ziye12/JavaScript/master/qzdkziye.js, requires-body=true, timeout=10, tag=圈子打卡
*/
const sy = init()//声明必须
const notifyInterval = 1; //通知开为1,常关为0
const logs = 0; // 日志开关
const jsname = '圈子打卡'
const jbid =1
const sb='失败,请先关闭,进入程序获取授权'
const cs = 20;//小程序打卡次数
const xj = 1;//提现标准
var tz=''
const dkurlkey = 'qzdkurl'+jbid
const dkurl = sy.getdata(dkurlkey)
let isGetCookie = typeof $request !== 'undefined'
if (isGetCookie) {
GetCookie()
} else {
all()
}
function GetCookie() {
if ($request && $request.url.match(/i=9&/))
if ($request && $request.url.match(/action=today&contr=index/))
{
const dkurl = $request.url
sy.log(`dkurl:${dkurl}`)
if (dkurl) sy.setdata(dkurl, dkurlkey)
sy.msg(dkurlkey, `获取cookie: 成功🎉`, ``)
}
}
//异步运行
function all()
{
for(var i=0;i<3;i++)
{ (function(i) {
setTimeout(function() {
if(i==0) dktj(i);
else if(i==1) dkxj(i);
else if(i==2) showmsg(i);
}, (i + 1) * 1000);
})(i)
}}
//统计
function dktj() {
return new Promise((resolve, reject) => {
const Tjurl = {
url: dkurl
};
sy.get(Tjurl,(error, response, data) =>{
if(logs)sy.log(`${jsname}1统计 - data: ${data}`)
obj = JSON.parse(data)
if(obj.status == 1 && obj.info.today.clock < cs){tz+="[账户信息]🎉"+"\n"+
"今日已打卡"+[Number(obj.info.today.clock) ]+"/"+cs+"次"+"余"+[Number(obj.info.today. currency)]+"币"+"\n"
}else tz+="[打卡完成]"+"余"+[Number(obj.info.today. currency)]+"币"+"\n"
cstj1(obj.info.today.clock);
resolve()
})
})
}
//次数统计
function cstj1(tjtj)
{
if (tjtj<cs)
dkdk();
}
//现金
function dkxj() {
return new Promise((resolve, reject) => {
const Xjurl = {
url: dkurl.replace(/action=today&contr=index/g, `action=index&contr=my`)
};
sy.get(Xjurl,(error, response, data) =>{
if(logs)sy.log(`${jsname}1现金 - data: ${data}`)
obj = JSON.parse(data)
if(obj.status == 1) {
tz +="💵现金余额"+
obj.info.member.money+"元"+"\n"
}
else tz +=sb+"\n";
xjtj1(obj.info.member.money);
resolve()
})
})
}
//自动提现
function dktx() {
return new Promise((resolve, reject) => {
const Txurl = {
url: dkurl.replace(/action=today&contr=index/g, `action=withdrawals&contr=my&money=${xj}&payment_code=`)
};
sy.get(Txurl,(error, response, data) =>{
if(logs)sy.log(`${jsname}1提现 - data: ${data}`)
obj = JSON.parse(data)
if(obj.status == 1) {
tz +='提现成功,成功提现'+xj+'元'+"\n"
}
if(obj.status == 2) {
tz +='提现失败,原因:'+obj.info+"\n"
}
resolve()
})
})
}
//现金统计
function xjtj1(tjtj)
{
if (tjtj>=xj)
dktx()
}
//打卡
function dkdk() {
return new Promise((resolve, reject) => {
const Dkurl = {
url: dkurl.replace(/action=today&contr=index/g, `action=sign&contr=clock`)
};
sy.get(Dkurl,(error, response, data) =>{
if(logs)sy.log(`${jsname}1打卡- data: ${data}`)
obj = JSON.parse(data)
if (obj.status==1){
tz+='[️打卡任务]:'+'打卡次数+1'+'\n'
}
else tz +=obj.info+'\n'
resolve()
})
})
}
function showmsg() {
console.log(tz)
if (notifyInterval==1)
sy.msg(jsname,'',tz)
}
function init() {
isSurge = () => {
return undefined !== this.$httpClient
}
isQuanX = () => {
return undefined !== this.$task
}
getdata = (key) => {
if (isSurge()) return $persistentStore.read(key)
if (isQuanX()) return $prefs.valueForKey(key)
}
setdata = (key, val) => {
if (isSurge()) return $persistentStore.write(key, val)
if (isQuanX()) return $prefs.setValueForKey(key, val)
}
msg = (title, subtitle = '', body = '') => {
if (isSurge()) $notification.post(title, subtitle, body)
if (isQuanX()) $notify(title, subtitle, body)
}
log = (msg) => {
console.log(`${msg}\n`)
}
get = (options, callback) => {
if (isQuanX()) {
if (typeof options == 'string') options = { url: options }
options['method'] = 'GET'
return $task.fetch(options).then(
(response) => {
response['status'] = response.statusCode
callback(null, response, response.body)
},
(reason) => callback(reason.error, null, null)
)
}
if (isSurge()) return $httpClient.get(options, callback)
}
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)
}
done = (value = {}) => {
$done(value)
}
return { isSurge, isQuanX, msg, log, getdata, setdata, get, post, done }
}