Skip to content

Commit 19aa738

Browse files
author
ziye12
authored
Add files via upload
微信扫码jydkziye.png进入程序获取授权
1 parent 0a32851 commit 19aa738

File tree

1 file changed

+338
-0
lines changed

1 file changed

+338
-0
lines changed

jydkziye.js

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

0 commit comments

Comments
 (0)