|
@@ -281,13 +281,18 @@ U.MD.D.error = function (errorMessage, scripturi, linenumber, columnnumber, erro
|
|
|
U.MD.D.getuser = function () {
|
|
|
setInterval(() => {
|
|
|
var _cookie = U.UF.Cookie.get("cocorobo");
|
|
|
- if (US.usrinfo == null && _cookie) {
|
|
|
- U.A.Request(US.Config.server + "getcookieuserid", [], function (res) {
|
|
|
+ if (US.userinfo == null && _cookie) {
|
|
|
+ U.A.Request(US.Config.server + "profile", [], function (res) {
|
|
|
if (res.value && res.value[0] && res.value[0][0]) {
|
|
|
- US.usrinfo = res.value[0][0]; //记录用户数据
|
|
|
+ US.userinfo = res.value[0][0]; //记录用户数据
|
|
|
if ($("#U_MD_HomeC_Pop")[0]) {
|
|
|
$("#U_MD_HomeC_Pop")[0].close(); //关闭登陆
|
|
|
}
|
|
|
+ U.A.Request(US.Config.edu + "admin/userinfo/userinfoById/" + US.userinfo.userid, [], function (res) {
|
|
|
+ if (res.value && res.value[0] && res.value[0][0]) {
|
|
|
+ US.userinfo = res.value[0][0]; //记录用户数据
|
|
|
+ }
|
|
|
+ }, [], { "type": "GET", "withCredentials": true });
|
|
|
}
|
|
|
}, [], { "type": "GET", "withCredentials": true });
|
|
|
}
|