|
@@ -1,4 +1,4 @@
|
|
|
-let Queue = {IS_LOADED : false, nowuse : 0, SVR_URL:"/server/", groupsCount : 0, groups:[], shouldStop : false, backup:["/server/","http://localhost:8803/server/","http://172.30.84.3:8803/server/","https://1.niimei.com/server/"] ,list:[]};
|
|
|
+let Queue = {IS_LOADED : false, nowuse : 0, SVR_URL:"/server/", groupsCount : 0, groups:[], shouldStop : false, backup:["http://localhost:8803/server/","/server/","http://172.30.84.3:8803/server/","https://1.niimei.com/server/"] ,list:[]};
|
|
|
let Users = {list : []};
|
|
|
function get_server_url() {
|
|
|
let output = $.ajax({url: Queue.SVR_URL + "/fcWorker/list?userId=1", timeout:1000 }).fail(on_check_fail).done(function(){
|
|
@@ -201,13 +201,13 @@ function send_alert(a, b){
|
|
|
|
|
|
function getUserName(uid){
|
|
|
var uname = null;
|
|
|
- Users.list.forEach(function(val, id, arr){
|
|
|
+ Users.list.forEach(function(val, aid, arr){
|
|
|
if(val.worker.userId == uid){
|
|
|
uname = worker.userName;
|
|
|
}
|
|
|
});
|
|
|
if(uname == null) {
|
|
|
- get_data("fcWorker/list?userId=" + id, on_username_retn);
|
|
|
+ get_data("fcWorker/list?userId=" + uid, on_username_retn);
|
|
|
return "[用户:"+uid+"]";
|
|
|
}else{
|
|
|
return uname;
|