Browse Source

feat:替换autologin

coder 1 year ago
parent
commit
ae1453caf0
1 changed files with 12 additions and 2 deletions
  1. 12 2
      public/auto-login.html

+ 12 - 2
public/auto-login.html

@@ -53,11 +53,21 @@
         api: 'http://jnjymf_api.bozedu.top'
       }
     } else {
-      login_obj = {
+      //正式服
+        login_obj = {
         url: 'https://cube.zjedu.com',
-        code: 'suiteecoywfohhm68lkix',
+        code:'',
+        //code: 'suiteecoywfohhm68lkix',//自建应用入口参数-(自建)局端办公
+        //code:'suiteqgk1lqmvytipcnyr',//统建应用入口参数 - (统建)校端公文管理
         api: 'http://60.188.226.44:8090'
       }
+        let p = new Object();
+        p = GetRequest();
+        if(p.tong==1){
+            login_obj.code='suiteqgk1lqmvytipcnyr';//统建应用入口参数 - (统建)校端公文管理
+        }else{
+            login_obj.code='suiteecoywfohhm68lkix';//自建应用入口参数-(自建)局端办公
+        }
     }
     $(function () {
       var params = new Object();