Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
言程序plus
dr_py
提交
1ef5ebed
dr_py
项目概览
言程序plus
/
dr_py
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
dr_py
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1ef5ebed
编写于
10月 11, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加了解析加密功能
上级
4825ba47
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
24 addition
and
4 deletion
+24
-4
controllers/parse.py
controllers/parse.py
+13
-3
jiexi/江湖加密.js
jiexi/江湖加密.js
+10
-0
js/version.txt
js/version.txt
+1
-1
未找到文件。
controllers/parse.py
浏览文件 @
1ef5ebed
...
...
@@ -48,6 +48,11 @@ def 重定向(url:str):
else
:
return
str
(
url
)
def
toast
(
url
:
str
):
if
isinstance
(
url
,
PyJsString
):
url
=
parseText
(
str
(
url
))
return
f
'toast://
{
url
}
'
@
parse
.
route
(
'/api/<path:filename>'
)
def
parse_home
(
filename
):
url
=
getParmas
(
'url'
)
...
...
@@ -61,14 +66,17 @@ def parse_home(filename):
return
R
.
failed
(
f
'
{
file_path
}
文件不存在'
)
logger
.
info
(
f
'开始尝试通过
{
filename
}
解析:
{
url
}
'
)
jsp
=
jsoup
(
url
)
py_ctx
.
update
({
'vipUrl'
:
url
,
'fetch_params'
:
{
'headers'
:
{
'Referer'
:
url
},
'timeout'
:
10
,
'encoding'
:
'utf-8'
},
'jsp'
:
jsp
,
'重定向'
:
重定向
'重定向'
:
重定向
,
'toast'
:
toast
,
'print'
:
print
,
'log'
:
logger
.
info
,
'getParmas'
:
getParmas
,
'params'
:
getParmas
()
})
ctx
=
py_ctx
with
open
(
file_path
,
encoding
=
'utf-8'
)
as
f
:
...
...
@@ -88,6 +96,8 @@ def parse_home(filename):
# print(realUrl)
if
str
(
realUrl
).
startswith
(
'redirect://'
):
return
redirect
(
realUrl
.
split
(
'redirect://'
)[
1
])
elif
str
(
realUrl
).
startswith
(
'toast://'
):
return
R
.
failed
(
str
(
realUrl
).
split
(
'toast://'
)[
1
],
extra
=
{
'from'
:
url
})
return
R
.
success
(
f
'
{
filename
}
解析成功'
,
realUrl
,{
'time'
:
f
'
{
get_interval
(
t1
)
}
毫秒'
,
'from'
:
url
})
except
Exception
as
e
:
msg
=
f
'
{
filename
}
解析出错:
{
e
}
'
...
...
jiexi/江湖加密.js
0 → 100644
浏览文件 @
1ef5ebed
let
PWD
=
'
drpy
'
;
// log(params);
if
(
!
params
.
passwd
){
realUrl
=
vipUrl
}
else
if
(
params
.
passwd
!==
PWD
){
realUrl
=
toast
(
vipUrl
+
'
解析失败。解析密码错误
'
);
}
else
{
realUrl
=
重定向
(
'
http://211.99.99.236:4567/jhjson/ceshi.php?url=
'
+
vipUrl
)
}
\ No newline at end of file
js/version.txt
浏览文件 @
1ef5ebed
3.8.4
\ No newline at end of file
3.8.5
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录