Răsfoiți Sursa

路径转发修改

huqi 5 ani în urmă
părinte
comite
b8ced49494

+ 4 - 4
o2web/source/x_desktop/oauth.html

@@ -96,7 +96,7 @@
                             }
                             var r = protocol + "//" + location.host + location.pathname;
                             r = r + "?oauth=" + oauth + "&qywx=true";
-                            url += "&redirect_uri=" + encodeURIComponent(r);
+                            url += "&redirect_uri=" + encodeURIComponent(o2.filterUrl(r));
 
                             window.location = url;
                         }.bind(this));
@@ -110,7 +110,7 @@
                             }
                             var r = protocol + "//" + location.host + location.pathname;
                             r = r + "?oauth=" + oauth + "&dingding=true";
-                            url += "&redirect_uri=" + encodeURIComponent(r);
+                            url += "&redirect_uri=" + encodeURIComponent(o2.filterUrl(r));
                             window.location = url;
                         }.bind(this));
                     } else {
@@ -121,7 +121,7 @@
                             r = r + "?oauth=" + oauth;
                             if (method) r = r + "&method=" + method;
                             if (redirect) r = r + "&redirect=" + redirect;
-                            p = (p) ? p + "&redirect_uri=" + encodeURIComponent(r) : "&redirect_uri=" + encodeURIComponent(r);
+                            p = (p) ? p + "&redirect_uri=" + encodeURIComponent(o2.filterUrl(r)) : "&redirect_uri=" + encodeURIComponent(o2.filterUrl(r));
                             url = (url.indexOf("?" === -1)) ? url + "?" + p : url + "&" + p;
                             window.location = url;
                         }.bind(this));
@@ -304,4 +304,4 @@
     <!--<div id="layout" style="overflow: auto; height:100%"></div>-->
 </body>
 
-</html>
+</html>

+ 1 - 1
o2web/source/x_desktop/smapsso.html

@@ -78,7 +78,7 @@
                     var redirect = uri.getData("redirect");
                     if (xtoken){
                         var res = new Request.JSON({
-                            url: address+"?SMAP_SESSION_DATA="+encodeURIComponent(xtoken)+"&appID="+appID+"&date="+(new Date()).getTime(),
+                            url: o2.filterUrl(address+"?SMAP_SESSION_DATA="+encodeURIComponent(xtoken)+"&appID="+appID+"&date="+(new Date()).getTime()),
                             secure: false,
                             method: "GET",
                             noCache: true,

+ 1 - 1
o2web/source/x_desktop/sso.html

@@ -79,7 +79,7 @@
                     if (xtoken){
                         var res = new Request.JSON({
                             //url: "http://hbxa01.bf.ctc.com:20080/x_organization_assemble_authentication/jaxrs/sso",
-                            url: address+"/jaxrs/sso",
+                            url: o2.filterUrl(address+"/jaxrs/sso"),
                             secure: false,
                             method: "POST",
                             noCache: true,