lsc 8 hónapja
szülő
commit
3783981410
1 módosított fájl, 9 hozzáadás és 0 törlés
  1. 9 0
      js/Desktop/Onload.js

+ 9 - 0
js/Desktop/Onload.js

@@ -481,6 +481,9 @@ U.MD.D.getuser = function () {
                                 if(res.value[0][0].type === 1 && window.location.hash.indexOf('study') != -1){
                                     U.MD.D.I.openApplication("study")
                                 }
+                                if(res.value[0][0].type === 2 && window.location.hash.indexOf('study') != -1){
+                                    U.MD.D.I.openApplication("studentStudy")
+                                }
                                 U.MD.O.P.connect(); //登录成功后连接socket服务同步协同编辑
                             }, [], { "type": "GET", "withCredentials": true });
                         }
@@ -691,6 +694,9 @@ U.MD.D.getuser = function () {
                                     if(res.value[0][0].type === 1 && window.location.hash.indexOf('study') != -1){
                                         U.MD.D.I.openApplication("study")
                                     }
+                                    if(res.value[0][0].type === 2 && window.location.hash.indexOf('study') != -1){
+                                        U.MD.D.I.openApplication("studentStudy")
+                                    }
                                     U.MD.O.P.connect(); //登录成功后连接socket服务同步协同编辑
                                 }, [], { "type": "GET", "withCredentials": true });
                             }
@@ -950,6 +956,9 @@ U.MD.D.getuser2 = function (userid, cid) {
         if(res.value[0][0].type === 1 && window.location.hash.indexOf('study') != -1){
             U.MD.D.I.openApplication("study")
         }
+        if(res.value[0][0].type === 2 && window.location.hash.indexOf('study') != -1){
+            U.MD.D.I.openApplication("studentStudy")
+        }
         U.MD.O.P.connect(); //登录成功后连接socket服务同步协同编辑
         U.MD.D.I.openInApplication("studyDetail", cid, 2, 2)
     }, [], { "type": "GET", "withCredentials": true });