lsc 1 dienu atpakaļ
vecāks
revīzija
a9d24097ee
1 mainītis faili ar 6 papildinājumiem un 6 dzēšanām
  1. 6 6
      js/Desktop/Onload.js

+ 6 - 6
js/Desktop/Onload.js

@@ -426,14 +426,14 @@ U.MD.D.getuser = function () {
         .then(result => {
             // console.log(result)
             let data = JSON.parse(result).data
-            return
-            if(JSON.parse(result).code == 200){
-                let diqu = `${data.province}-${data.city}-${data.county}-${data.street}-${data.schoolName}`
-                let diquId = data.schoolId
-                U.A.Request(US.Config.pbl + "batchRegistrationSzdjg3", [data.realName, data.userUniqueId+"@xhly.com", 'c05b87d3-3d8e-4415-9dba-f3deccac4822', data.schoolName || "", "", "", 1, data.userUniqueId,diqu,diquId], function (res) {
+            // return
+            if(JSON.parse(result).code == 0){
+                let diqu = ``
+                let diquId = data.schoolcode
+                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({
-                        openid: data.userUniqueId,
+                        openid: data.loginid,
                         edu: true
                     })
                     var requestOptionsLogin = {