PageSourceSearch

https://www.xjht.gov.cn/xjht/c128404/userlogin.shtml?redirecturl=https://www.xjht.gov.cn/

html xjht.gov.cn collected 2026-10-02 16:46:37 UTC 4,787 bytes, 126 lines download raw bytes

1<!DOCTYPE html>
2<html>
3<head>
4    <meta charset="utf-8">
5    <meta http-equiv="X-UA-Compatible" content="IE=edge">
6    <meta name="viewport" content="width=device-width, initial-scale=1">
7    
8<meta name="SiteName" content="和田地区行政公署"/>
9<meta name="SiteDomain" content="https://www.xjht.gov.cn/"/>
10<meta name="SiteIDCode" content="6532000001"/>
11<meta name="ColumnName" content="登录跳转页" />
12<meta name="ColumnDescription" content="登录跳转页"/>
13<meta name="ColumnKeywords" content="登录跳转页"/>
14<meta name="ColumnType" content="登录跳转页"/>
15
16<meta name="others" content="2026-01-14 09:06:30" />
17<title>user login</title>
18    
18<script src="/xjht/xhtml/js/jquery.min.js"></script>
18
19</head>
20<body>
21    <div style="text-align: center;">
22        <img src="/xjkz/xhtml/images/hd/loading.gif" alt="" srcset="" />
23        <!-- <p>验证中</p> -->
24    </div>
25
26    
26<script type="text/javascript">
27
28    if (window.location.protocol==='https:') {
29        var clientid="WEB-HTDQXZGS",
30        clientsecret='NDAU05KWHY3XU5CS',
31        redirecturi= 'https://www.xjht.gov.cn/'
32    } else {
33        var clientid="WEB-HTDQXZGS",
34        clientsecret='NDAU05KWHY3XU5CS',
35        redirecturi= 'http://www.xjht.gov.cn/'
36    }
37
38        var tokenObj = {};
39
40        //cookies设置
41            function setCookie(name, value) {
42                var Days = 10; 
43                var exp = new Date(); 
44                exp.setTime(exp.getTime() + Days*60*60*1000); 
45            document.cookie = name + "="+ escape (value) + ";path=/"; 
46            }
47    	function getPageInfo(stdt){
48    		$.ajax({
49                url:'https://zwfw.xinjiang.gov.cn/xjwwrz/rest/oauth2/token',
50                type:'POST', //GET,POST
51                async:true,    //或false,是否异步
52                data:{
53                    client_id:clientid,
54                    client_secret:clientsecret,
55                    grant_type:'authorization_code',
56                    redirect_uri:redirecturi,
57                    code:stdt
58                },
59                timeout:5000,    //超时时间
60                dataType:'json',    //返回的数据格式:json/xml/html/script/jsonp/text
61               
62                success:function(data,textStatus,jqXHR){
63                    if(typeof(data.access_token) != "undefined"){
64                        setCookie("access_token",data.access_token);
65                        var rurl=akGetRequestPara("redirecturl");
66                        console.log(rurl);
67                        if(rurl==""){
68                            window.location.href="https://zwfw.xinjiang.gov.cn/xinjiangzwfwnew/user_center.html";
69                        }else{
70                            window.location.href=rurl.replace(/\,/g,'&');
71                        }
72                       
73						//getUserId(data.access_token);
74                    }else{
75                        console.log(data);
76                    }
77                   
78                    
79                },
80                error:function(xhr,textStatus){
81                   // console.log('错误')
82                    console.log(xhr)
83                    //console.log(textStatus)
84                }
85                
86            });
87    	}
88
89        var akGetRequestPara = function(paras) {
90            var url = location.href;
91            var paraString = url.substring(url.indexOf("?") + 1, url.length).split("&");
92            var paraObj = {};
93            var i,j;
94
95            for (i = 0; j = paraString[i]; i++) {
96                paraObj[j.substring(0, j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf("=") + 1, j.length);
97            }
98
99            var returnValue = paraObj[paras.toLowerCase()];
100
101            if (typeof(returnValue) == "undefined") {
102                return "";
103            } else {
104                return returnValue;
105            }
106        };
107
108        $(function() {
109            var code = akGetRequestPara("code");
110            if (code == "") {
111                var redirecturl=window.location.href
112                $("#codeStr").val("no code");
113                if($(window).width()<721){
114                    window.location.href = "https://zwfw.xinjiang.gov.cn/xjwwrz/login/oauth2login_mobile?client_id="+clientid+"&response_type=code&redirect_uri="+encodeURIComponent(redirecturl);
115                }else{
116                    window.location.href = "https://zwfw.xinjiang.gov.cn/xjwwrz/login/oauth2login?client_id="+clientid+"&response_type=code&redirect_uri="+encodeURIComponent(redirecturl);
117                }
118           
119            } else {
120                getPageInfo(code);
121            }
122        });
123        
124    </script>
124
125</body>
126</html>

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.