Commit 39615e29 by hanjixin

添加认证文件

parent bda6380a
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title></title>
</head>
<body>
</body>
<script>
function getQuery(key) {
var url = location.search; //获取url中"?"符后的字串
var theRequest = new Object();
if (url.indexOf('?') != -1) {
var str = url.substr(1);
var strs = str.split('&');
for (var i = 0; i < strs.length; i++) {
theRequest[strs[i].split('=')[0]] = decodeURI(strs[i].split('=')[1]);
}
}
if (key) {
return (theRequest[key] === "undefined" || theRequest[key] == '0') ? '' : theRequest[key];
} else {
return theRequest;
}
}
var query = getQuery();
var token = query.token
var url = query.url
var applicationId = query.aid
window.localStorage.setItem('bdideal_personalToken', token)
window.localStorage.setItem('bdideal_applicationId', applicationId)
window.localStorage.setItem('bdideal_saveTime', Date.now())
location.replace(url)
</script>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment