Sfoglia il codice sorgente

1

Signed-off-by: lcw <1324309909@qq.com>
lcw 2 anni fa
parent
commit
b557b87dec
1 ha cambiato i file con 8 aggiunte e 2 eliminazioni
  1. 8 2
      js/Office/Word/Word.js

+ 8 - 2
js/Office/Word/Word.js

@@ -65,10 +65,16 @@ U.MD.O.W.getuser = async function () {
     return new Promise((resolve, reject) => {
         U.A.Request(US.Config.server + "getcookieuserid", [], function (res) {
             if (res.value && res.value[0] && res.value[0][0]) {
-                US.userinfo = res.value[0][0]; //记录用户数据
-                U.A.Request(US.Config.edu + "admin/userinfo/userinfoById/" + US.userInfo.userid, [], function (res) {
+                US.user = res.value[0][0]; //记录用户数据
+                U.A.Request(US.Config.edu + "admin/userinfo/userinfoById/" + US.user.userid, [], function (res) {
                     if (res.value && res.value[0] && res.value[0][0]) {
+                        US.userinfo = res.value[0][0];
                         resolve(res.value[0][0]); //记录用户数据
+                        U.A.Request(US.Config.pbl + "selectUser?userid=" + US.user.userid, [], function (res) {//US.user.userid
+                            if (res.value != null || res.value[0].length > 0) {
+                                US.userinfo = res.value[0][0];
+                            }
+                        }, [], { "type": "GET", "withCredentials": true });
                     }
                 }, [], { "type": "GET", "withCredentials": true });
             }