赞
踩
仅限学习使用
- <html>
- <head>
- </head>
- <body>
-
- <script src="AesUtil.js"></script>
- <script src="md5.js"></script>
- <script>
-
- function test(a) { return true; }
-
- function serialize(o) {
- var n = arguments.length > 1 && void 0 !== arguments[1] && arguments[1],
- e = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "&",
- t = [];
- for (var r in o) t.push(r + "=" + (void 0 === o[r] ? "" : n ? encodeURIComponent(o[r]) : o[r]));
- return t.sort(), t.join(e)
- };
-
-
-
- function callSignature_md5(t, e) {
-
- return e = e || "", {
- signature: md5(md5(t).toUpperCase() + e).toUpperCase()
- }
-
- }
- function test(a, s) {
- debugger
- var e = "https://app.variflight.com/weixinapp"
-
-
- a = e + a
- t = "5.9.0"
-
-
- i = new RegExp("(https?|ftp|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]");
-
-
- var arguments = {};
-
- var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0
- c = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 0
- d = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : 1
- g = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : "GET"
- l = arguments.length > 6 && void 0 !== arguments[6] ? arguments[6] : "json"
- u = arguments.length > 7 && void 0 !== arguments[7] ? arguments[7] : {
- "Content-Type": "application/x-www-form-urlencoded",
- "App-Code": "variflight"
- };
- var ddd = serialize(s)
-
- var dk = a.startsWith(e)
-
- //s.version = t
- //s.timestamp = (new Date).getTime()
- //ddd = serialize(s)
- var mdk = callSignature_md5(serialize(s), a.startsWith(e) ? "" : "")
- s = assign({}, s, callSignature_md5(serialize(s), a.startsWith(e) ? "" : ""))
-
- }
-
-
-
- var a = "/flight/flightdetailv2";
- var s = {
-
- };
-
-
-
- test(a, s)
- </script>
-
- </body>
- </html>
### 2) 调用方式:HTTP post
### 3) 接口描述:
* 接口描述详情
### 4) 请求参数:
#### GET参数:
|字段名称 |字段说明 |类型 |必填 |备注 |
| -------------|:--------------:|:--------------:|:--------------:| ------:|
|_um_ssrc||string|Y|-|
|_um_sts||string|Y|-|
|arr||string|Y|-|
|date||string|Y|-|
|dep||string|Y|-|
|fnum||string|Y|-|
|id||string|Y|-|
|shareChannel||string|Y|-|
|type||string|Y|-|
|uversion||string|Y|-|
|sessionKey||string|Y|-|
|brand||string|Y|-|
|system||string|Y|-|
|model||string|Y|-|
|platform||string|Y|-|
|deviceVersion||string|Y|-|
|deviceType||string|Y|-|
|unionId||string|Y|-|
|openId||string|Y|-|
|deviceID||string|Y|-|
|version||string|Y|-|
|timestamp||string|Y|-|
|signature||string|Y|-|
需要用到MD5 和 排序 函数
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。