开云·kaiyun体育(中国)官方网站-登录入口

");var t=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),o=t.exec(n);return o?o[2]?decodeURIComponent(o[2].replace(/\+/g," ")):"":null}function t(e){var n=document.location.search||document.location.hash;if(n){if("?"===n[0]&&(n=n.slice(1)),null===e)return decodeURIComponent(n);for(var t=n.split("&"),o=0,s=t.length;o=1-(Number(s)||.1)&&((new Image).src="https://support.weixin.qq.com/cgi-bin/mmsupportmeshnodelogicsvr-bin/cube?biz=3512&label=connect.qrconnect&"+t+"="+o+"&msg="+e("appid")+"&idx1="+e("scope")+"&idx2="+encodeURIComponent(encodeURIComponent(n("redirect_uri"))))}function s(e){jQuery.ajax({type:"GET",url:B+"/connect/l/qrconnect?uuid="+O+(e?"&last="+e:""),dataType:"script",cache:!1,timeout:6e4,success:function(e,n,t){o("action","connect_qrconnect_longpull_success",.01);var i=window.wx_errcode;switch(i){case 405:o("action","connect_qrconnect_longpull_success_405",.01);var c="/oauth/weixin/callback";if(c=c.replace(/&/g,"&"),c+=(c.indexOf("?")>-1?"&":"?")+"code="+wx_code+"&state=",console.log("扫码redirect_uri: ",c),f)if("true"!==D&&"false"!==D)try{document.domain="qq.com";var r=window.top.location.host.toLowerCase();r&&(window.location=c)}catch(e){window.top.location=c}else if("true"===D)try{window.location=c}catch(e){window.top.location=c}else window.top.location=c;else window.location=c;break;case 404:o("action","connect_qrconnect_longpull_success_404",.01),jQuery(".js_status").hide(),jQuery(".js_qr_img").hide(),jQuery(".js_wx_after_scan").show(),setTimeout(s,100,i);break;case 403:o("action","connect_qrconnect_longpull_success_403",.01),jQuery(".js_status").hide(),jQuery(".js_qr_img").hide(),jQuery(".js_wx_after_cancel").show(),setTimeout(s,2e3,i);break;case 402:o("action","connect_qrconnect_longpull_success_402",.01),U=!0,f&&1!==v||y?$(".js_qrcode_img").attr("src","https://res.wx.qq.com/t/fed_upload/46a73b115c002aa8d49ae255da18c592/qrcode_expired.jpg"):($(".js_refresh_qrcode").show(),$(".js_refresh_qrcode_mask").show());break;case 500:o("action","connect_qrconnect_longpull_success_500",.01),setTimeout(function(){window.location.reload()},200);break;case 408:o("action","connect_qrconnect_longpull_success_408",.01),G&&0!==N||setTimeout(s,2e3);break;default:o("action","connect_qrconnect_longpull_success_others",.01)}},error:function(e,n,t){o("action","connect_qrconnect_longpull_error",.01);var i=window.wx_errcode;408==i?(o("action","connect_qrconnect_longpull_error_408",.01),setTimeout(s,5e3)):(o("action","connect_qrconnect_longpull_error_others",.01),setTimeout(s,5e3,i))}})}function i(e,n){var t,o,s=screen.width,i=screen.height,c=window.outerWidth||document.documentElement.clientWidth||document.body.clientWidth,r=window.outerHeight||document.documentElement.clientHeight||document.body.clientHeight,a=window.screenX||window.screenLeft||0,l=window.screenY||window.screenTop||0,d=window.screen.availLeft||0,_=window.screen.availTop||0;return window.top!=window?void 0===window.screen.availLeft?(t=a+c/2-e/2,o=l+r/2-n/2,console.log("availLeft undefined && centerX: ",t)):(t=s/2-e/2+d,o=i/2-n/2+_,console.log("centerX: ",t)):(t=a+c/2,o=l+r/2,t=0===d?Math.min(Math.max(t-e/2,0),s+d-e):Math.min(Math.max(t-e/2,d),s+d-e),o=0===_?Math.min(Math.max(o-n/2,0),i+_-n):Math.min(Math.max(o-n/2,_),i+_-n)),{x:t,y:o}}function c(e,n,t,o,s,i,r){return r||(r=jQuery.Deferred()),0===e.length?($(".js_quick_login").hide(),$(".js_normal_login").show(),$(".js_switchToFast_wrp").hide(),$(".js_web_qrcode_tips_fast").hide(),$(".js_web_qrcode_tips_normal").show(),G=!1,console.log("所有端口均无法连接"),r.resolve(),r.promise()):(console.log("当前port: ",e[0]),$.ajax({url:"https://localhost.weixin.qq.com:"+e[0]+n,type:t,cache:!1,contentType:"application/json",data:JSON.stringify(o),success:function(n){s&&s(n),r.resolve(n,e[0])},error:function(a,l,d){console.log("端口"+e[0]+"连接失败,尝试下一个端口"), e.length>1?c(e.slice(1),n,t,o,s,i,r):(i&&i(),r.resolve(!1))}}),r.promise())}function r(t){return console.log("checklogin post redirect_uri",n("redirect_uri")),c(t,"/api/check-login","POST",{apiname:"qrconnectchecklogin",jsdata:{appid:e("appid"),scope:e("scope"),redirect_uri:n("redirect_uri"),state:n("state")||""}},function(e){o("action","connect_qrconnect_checkLogin_succ",1)},function(){o("action","connect_qrconnect_checkLogin_fail",1)})}function a(e){var n=e.errcode;return!(0!==n||!M)}function l(e,n){if(e){var t=JSON.parse(e);return console.log("登录状态检查成功",t),K=n,console.log("连通port: ",K),V=t.jsdata&&t.jsdata.authorize_uuid||"",a(t)}return!1}function d(e,n){if(n)var t=JSON.parse(n);e?(o("action","connect_qrconnect_fastLogin_show",1),$(".js_quick_login").show(),$(".js_normal_login").hide(),$(".js_switchToFast_wrp").show(),$(".js_web_qrcode_tips_fast").show(),$(".js_web_qrcode_tips_normal").hide(),$(".js_quick_login_nickname").text(t.jsdata&&t.jsdata.nickname||""),$(".js_quick_login_avatar").attr("src",t.jsdata&&t.jsdata.headimgurl||"https://res.wx.qq.com/t/fed_upload/937b4aa0-2cc5-42ec-81d7-e641da427fff/avatar_default.svg")):($(".js_quick_login").hide(),$(".js_normal_login").show(),$(".js_switchToFast_wrp").hide(),$(".js_web_qrcode_tips_fast").hide(),$(".js_web_qrcode_tips_normal").show())}function _(e,n){for(var t=!1,o=0,s=0;s
XML 地图 | Sitemap 地图