Skip to content

Commit 5e9e3d7

Browse files
committed
天天基金网-模拟登录演练
1 parent 37b715c commit 5e9e3d7

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

1234567.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# encoding: utf-8
2+
__author__ = 'zhanghe'
3+
4+
"""
5+
天天基金网 - 模拟登录演练
6+
请求地址:https://trade.1234567.com.cn/do.aspx/CheckedCS
7+
请求方式:post
8+
参数格式:{CS: "MCUyQzAlMkMxMzgxODczMjU5NCUyQzEyMzQ1NiUyQzAlMkMlMkM="}
9+
参数产生:data:JSON.stringify({CS:JsEncrpt.encode(encodeURIComponent(opts.TabID+","+at+","+$.trim(name)+","+escape($.trim(tbpwd.val()))+","+$("#hidenum").val()+","+tbcode.val()+","+direct))}),
10+
获取表单数据加密方法:https://trade.1234567.com.cn/js/jsencrpt.js
11+
"""

template/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
<meta charset="UTF-8">
55
<title>python web</title>
66
<script type="text/javascript" src="/static/js/jsencrpt.js"></script>
7+
<script type="text/javascript">
8+
window.onload = function () {
9+
var text = JsEncrpt.decode("MCUyQzAlMkMxMzgxODczMjU5NCUyQzEyMzQ1NiUyQzAlMkMlMkM=");
10+
var text2 = decodeURIComponent(text);
11+
alert(text2);
12+
}
13+
</script>
714
</head>
815
<body>
916
Hello Python~~

0 commit comments

Comments
 (0)