Skip to content

Commit f88cf6c

Browse files
author
ziye12
authored
Add files via upload
微信扫码qzdkziye.png进入程序获取授权
1 parent c8d4b5d commit f88cf6c

File tree

1 file changed

+351
-0
lines changed

1 file changed

+351
-0
lines changed

qzdkziye.js

Lines changed: 351 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,351 @@
1+
/*ziye 圈子打卡
2+
3+
4+
非常重要!!!
5+
6+
微信扫码 https://raw.githubusercontent.com/ziye12/JavaScript/master/qzdkziye.png 进入小程序,登录获取授权,再启动软件获取ck
7+
建议设置6点到23点之间打卡,时间间隔30分钟以上,否则容易封号
8+
9+
10+
11+
12+
13+
14+
2020.9.22
15+
16+
17+
18+
19+
20+
《《《《《《《《《《制作其他打卡js的说明
21+
22+
抓包小程序,然后替换以下内容来制作其他打卡js,
23+
需要替换的内容如下,按顺序替换字符,自己用电脑或者KODE软件替换,KODE下载链接https://apps.apple.com/cn/app/koder-code-editor/id1447489375
24+
25+
wq.inqan.com
26+
圈子打卡
27+
cs = 20
28+
xj = 1
29+
qzdkurl
30+
i=9
31+
qzdk
32+
33+
手动替换
34+
wq\.inqan\.com
35+
36+
制作其他打卡js的说明》》》》》》》》》》》
37+
38+
39+
40+
41+
42+
43+
////////////////////////////////////////正文
44+
45+
46+
使用说明:
47+
48+
一,微信扫码 https://raw.githubusercontent.com/ziye12/JavaScript/master/qzdkziye.png 进入小程序,登录获取授权
49+
50+
二,然后将hostname复制粘贴进配置文件
51+
52+
三,将重写复制到 rewrite_local 下,再进入程序获取ck,建议 放入新建配置片段,获取之后禁用即可
53+
54+
55+
功能如下:
56+
1.每日打卡,设置了开关,完成任务不再打卡
57+
2.打卡币统计,
58+
3.现金统计,自动提现
59+
60+
hostname= wq.inqan.com,
61+
62+
63+
64+
//surge
65+
圈子打卡 = 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
66+
67+
68+
//圈x
69+
https:\/\/wq\.inqan\.com\/* url script-request-header https://raw.githubusercontent.com/ziye12/JavaScript/master/qzdkziye.js
70+
71+
//loon
72+
http-request ^https:\/\/wq\.inqan\.com\/* script-path= https://raw.githubusercontent.com/ziye12/JavaScript/master/qzdkziye.js, requires-body=true, timeout=10, tag=圈子打卡
73+
74+
75+
76+
*/
77+
78+
79+
80+
81+
82+
const sy = init()//声明必须
83+
const notifyInterval = 1; //通知开为1,常关为0
84+
const logs = 0; // 日志开关
85+
const jsname = '圈子打卡'
86+
const jbid =1
87+
const sb='失败,请先关闭,进入程序获取授权'
88+
89+
const cs = 20;//小程序打卡次数
90+
const xj = 1;//提现标准
91+
var tz=''
92+
93+
const dkurlkey = 'qzdkurl'+jbid
94+
const dkurl = sy.getdata(dkurlkey)
95+
96+
97+
let isGetCookie = typeof $request !== 'undefined'
98+
if (isGetCookie) {
99+
GetCookie()
100+
} else {
101+
all()
102+
}
103+
104+
105+
106+
function GetCookie() {
107+
if ($request && $request.url.match(/i=9&/))
108+
if ($request && $request.url.match(/action=today&contr=index/))
109+
{
110+
const dkurl = $request.url
111+
sy.log(`dkurl:${dkurl}`)
112+
if (dkurl) sy.setdata(dkurl, dkurlkey)
113+
sy.msg(dkurlkey, `获取cookie: 成功🎉`, ``)
114+
}
115+
116+
}
117+
118+
119+
//异步运行
120+
121+
122+
function all()
123+
124+
{
125+
126+
for(var i=0;i<3;i++)
127+
{ (function(i) {
128+
setTimeout(function() {
129+
130+
if(i==0) dktj(i);
131+
else if(i==1) dkxj(i);
132+
else if(i==2) showmsg(i);
133+
}, (i + 1) * 1000);
134+
})(i)
135+
136+
137+
}}
138+
139+
140+
141+
142+
//统计
143+
144+
function dktj() {
145+
return new Promise((resolve, reject) => {
146+
147+
const Tjurl = {
148+
url: dkurl
149+
};
150+
sy.get(Tjurl,(error, response, data) =>{
151+
if(logs)sy.log(`${jsname}1统计 - data: ${data}`)
152+
obj = JSON.parse(data)
153+
if(obj.status == 1 && obj.info.today.clock < cs){tz+="[账户信息]🎉"+"\n"+
154+
"今日已打卡"+[Number(obj.info.today.clock) ]+"/"+cs+"次"+"余"+[Number(obj.info.today. currency)]+"币"+"\n"
155+
}else tz+="[打卡完成]"+"余"+[Number(obj.info.today. currency)]+"币"+"\n"
156+
157+
158+
159+
160+
161+
cstj1(obj.info.today.clock);
162+
163+
164+
165+
resolve()
166+
})
167+
})
168+
}
169+
170+
171+
//次数统计
172+
173+
174+
function cstj1(tjtj)
175+
{
176+
if (tjtj<cs)
177+
dkdk();
178+
179+
180+
}
181+
182+
183+
//现金
184+
185+
function dkxj() {
186+
return new Promise((resolve, reject) => {
187+
188+
const Xjurl = {
189+
url: dkurl.replace(/action=today&contr=index/g, `action=index&contr=my`)
190+
};
191+
sy.get(Xjurl,(error, response, data) =>{
192+
if(logs)sy.log(`${jsname}1现金 - data: ${data}`)
193+
obj = JSON.parse(data)
194+
if(obj.status == 1) {
195+
196+
197+
198+
199+
tz +="💵现金余额"+
200+
obj.info.member.money+"元"+"\n"
201+
202+
}
203+
204+
else tz +=sb+"\n";
205+
206+
207+
xjtj1(obj.info.member.money);
208+
209+
210+
211+
resolve()
212+
})
213+
})
214+
}
215+
216+
217+
218+
219+
//自动提现
220+
221+
function dktx() {
222+
return new Promise((resolve, reject) => {
223+
224+
const Txurl = {
225+
url: dkurl.replace(/action=today&contr=index/g, `action=withdrawals&contr=my&money=${xj}&payment_code=`)
226+
};
227+
sy.get(Txurl,(error, response, data) =>{
228+
if(logs)sy.log(`${jsname}1提现 - data: ${data}`)
229+
obj = JSON.parse(data)
230+
if(obj.status == 1) {
231+
232+
tz +='提现成功,成功提现'+xj+'元'+"\n"
233+
234+
}
235+
236+
if(obj.status == 2) {
237+
238+
tz +='提现失败,原因:'+obj.info+"\n"
239+
240+
}
241+
242+
243+
244+
245+
resolve()
246+
})
247+
})
248+
}
249+
250+
251+
252+
//现金统计
253+
254+
255+
function xjtj1(tjtj)
256+
{
257+
if (tjtj>=xj)
258+
dktx()
259+
260+
}
261+
262+
263+
264+
//打卡
265+
function dkdk() {
266+
return new Promise((resolve, reject) => {
267+
268+
const Dkurl = {
269+
url: dkurl.replace(/action=today&contr=index/g, `action=sign&contr=clock`)
270+
};
271+
sy.get(Dkurl,(error, response, data) =>{
272+
if(logs)sy.log(`${jsname}1打卡- data: ${data}`)
273+
obj = JSON.parse(data)
274+
275+
if (obj.status==1){
276+
tz+='[️打卡任务]:'+'打卡次数+1'+'\n'
277+
278+
}
279+
else tz +=obj.info+'\n'
280+
281+
282+
resolve()
283+
})
284+
})
285+
}
286+
287+
288+
function showmsg() {
289+
290+
console.log(tz)
291+
292+
if (notifyInterval==1)
293+
sy.msg(jsname,'',tz)
294+
}
295+
296+
297+
function init() {
298+
isSurge = () => {
299+
return undefined !== this.$httpClient
300+
}
301+
isQuanX = () => {
302+
return undefined !== this.$task
303+
}
304+
getdata = (key) => {
305+
if (isSurge()) return $persistentStore.read(key)
306+
if (isQuanX()) return $prefs.valueForKey(key)
307+
}
308+
setdata = (key, val) => {
309+
if (isSurge()) return $persistentStore.write(key, val)
310+
if (isQuanX()) return $prefs.setValueForKey(key, val)
311+
}
312+
msg = (title, subtitle = '', body = '') => {
313+
if (isSurge()) $notification.post(title, subtitle, body)
314+
if (isQuanX()) $notify(title, subtitle, body)
315+
}
316+
log = (msg) => {
317+
console.log(`${msg}\n`)
318+
}
319+
get = (options, callback) => {
320+
if (isQuanX()) {
321+
if (typeof options == 'string') options = { url: options }
322+
options['method'] = 'GET'
323+
return $task.fetch(options).then(
324+
(response) => {
325+
response['status'] = response.statusCode
326+
callback(null, response, response.body)
327+
},
328+
(reason) => callback(reason.error, null, null)
329+
)
330+
}
331+
if (isSurge()) return $httpClient.get(options, callback)
332+
}
333+
post = (options, callback) => {
334+
if (isQuanX()) {
335+
if (typeof options == 'string') options = { url: options }
336+
options['method'] = 'POST'
337+
$task.fetch(options).then(
338+
(response) => {
339+
response['status'] = response.statusCode
340+
callback(null, response, response.body)
341+
},
342+
(reason) => callback(reason.error, null, null)
343+
)
344+
}
345+
if (isSurge()) $httpClient.post(options, callback)
346+
}
347+
done = (value = {}) => {
348+
$done(value)
349+
}
350+
return { isSurge, isQuanX, msg, log, getdata, setdata, get, post, done }
351+
}

0 commit comments

Comments
 (0)