Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
browser-backend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
browser-backend
Commits
25c285fd
Commit
25c285fd
authored
Mar 13, 2020
by
renjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付宝接口
parent
b28528b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
40 deletions
+41
-40
buyIp.html
src/main/resources/static/buyIp.html
+41
-40
No files found.
src/main/resources/static/buyIp.html
View file @
25c285fd
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
<meta
charset=
"UTF-8"
>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
1
</title>
<title>
1
</title>
<script
src=
"https://www.fangguanlian.cn/home/js/plugin/jq.min.js"
></script>
<script
src=
"https://www.fangguanlian.cn/home/js/plugin/jq.min.js"
></script>
</head>
</head>
<body>
<body>
<div
id=
"
test"
>
<div
id=
"
buy"
>
</div>
</div>
<script>
<script>
test
();
buy
();
function
test
(
str
=
location
.
href
.
split
(
'?'
)[
1
]){
function
buy
(
str
=
location
.
href
.
split
(
'?'
)[
1
]){
let
token
=
decodeURIComponent
(
str
).
split
(
"token_get_pay="
)[
1
].
split
(
"&html_get_pay="
)[
0
]
let
token
=
decodeURIComponent
(
str
).
split
(
"token_get_pay="
)[
1
].
split
(
"&html_get_pay="
)[
0
]
let
html
=
decodeURIComponent
(
str
).
split
(
"token_get_pay="
)[
1
].
split
(
"&html_get_pay="
)[
1
].
split
(
"&html_get_pay_money="
)[
0
]
let
html
=
decodeURIComponent
(
str
).
split
(
"token_get_pay="
)[
1
].
split
(
"&html_get_pay="
)[
1
].
split
(
"&html_get_pay_money="
)[
0
]
let
total
=
decodeURIComponent
(
str
).
split
(
"token_get_pay="
)[
1
].
split
(
"&html_get_pay="
)[
1
].
split
(
"&html_get_pay_money="
)[
1
]
let
total
=
decodeURIComponent
(
str
).
split
(
"token_get_pay="
)[
1
].
split
(
"&html_get_pay="
)[
1
].
split
(
"&html_get_pay_money="
)[
1
]
$
(
"#
test"
).
append
(
html
)
$
(
"#
buy"
).
append
(
html
)
}
}
function
getUrlParams
()
{
function
getUrlParams
()
{
const
bundleUrl
=
location
.
href
;
const
bundleUrl
=
location
.
href
;
let
params
=
bundleUrl
.
split
(
'?'
)[
1
];
let
params
=
bundleUrl
.
split
(
'?'
)[
1
];
params
=
params
?
paramsToObj
(
params
)
:
{};
params
=
params
?
paramsToObj
(
params
)
:
{};
return
params
;
return
params
;
}
}
function
paramsToObj
(
str
)
{
function
paramsToObj
(
str
)
{
let
obj
=
{};
let
obj
=
{};
try
{
try
{
obj
=
JSON
.
parse
(
'{"'
+
decodeURI
(
str
).
replace
(
/"/g
,
'
\\
"'
).
replace
(
/&/g
,
'","'
).
replace
(
/=/g
,
'":"'
)
+
'"}'
);
obj
=
JSON
.
parse
(
'{"'
+
decodeURI
(
str
).
replace
(
/"/g
,
'
\\
"'
).
replace
(
/&/g
,
'","'
).
replace
(
/=/g
,
'":"'
)
+
'"}'
);
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
);
}
}
return
obj
;
return
obj
;
}
}
</script>
</script>
</body>
</body>
</html>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment