Commit d3661d9a authored by zhoujun's avatar zhoujun

'初始版本'

parent 9df203f9
Pipeline #537 canceled with stages
......@@ -14,9 +14,7 @@
<body>
<div id="login_container" style="width: 400px; margin:200px auto;"></div>
<input type="hidden" id="key" value="{{ $key }}"/>
<script>
var key = '{{ $key }}';
var url = encodeURIComponent('http://upload-apk.srccwl.com/return/login');
var goto = encodeURIComponent('https://oapi.dingtalk.com/connect/oauth2/sns_authorize?appid=dingoap7dwt39svqfxlnkx &response_type=code&scope=snsapi_login&state=STATE&redirect_uri='+url)
var obj = DDLogin({
......@@ -31,6 +29,8 @@
var origin = event.origin;
if( origin == "https://login.dingtalk.com" ) {
var loginTmpCode = event.data;
alert(loginTmpCode);
alert(url);
window.location.href='https://oapi.dingtalk.com/connect/oauth2/sns_authorize?appid=dingoap7dwt39svqfxlnkx &response_type=code&scope=snsapi_login&state=STATE&redirect_uri='+url+'&loginTmpCode='+loginTmpCode
}
};
......
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 to comment