lsc vor 1 Tag
Ursprung
Commit
e326d245d9
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3 1
      js/Desktop/Onload.js

+ 3 - 1
js/Desktop/Onload.js

@@ -416,6 +416,8 @@ U.MD.D.getuser = function () {
         }
         LoginState = true
         let url = "https:" + US.Config.pbl + "luohugetTeacherInfo?code=" + encodeURIComponent(U.UF.C.queryString('code'));
+        myHeaders.append("Content-Type", "application/json");
+
         var requestOptions = {
             method: 'GET',
             redirect: 'follow'
@@ -429,7 +431,7 @@ U.MD.D.getuser = function () {
             // return
             if(JSON.parse(result).code == 0){
                 let diqu = ``
-                let diquId = data.schoolcode
+                let diquId = data.loginid
                 U.A.Request(US.Config.pbl + "batchRegistrationSzdjg3", [data.empname, data.loginid+"@luohu.com", 'c05b87d3-3d8e-4415-9dba-f3deccac4822', data.schoolname || "", data.mobile, "", data.identity === 1 ? 1 : 2, data.loginid,diqu,diquId], function (res) {
                     // console.log(res);
                     let loginData = JSON.stringify({