发布v2.6.8版本

This commit is contained in:
雨中磐石
2025-03-31 20:54:32 +08:00
parent 0701e2a8b4
commit d41bd27082
122 changed files with 9827 additions and 9132 deletions

View File

@@ -10,6 +10,7 @@ var agentarr={},userarr={},grouparr={},cnum='',windowfocus=true,jietubool=false;
var reim={
chatobj:{},
maindata:{},
nowtabs:'home',
initci:0,
timeloads:0,
ruloadtime:5*60, //5分钟
@@ -31,7 +32,7 @@ var reim={
//if(sw)$('#centlist').css('width',''+sw+'px');
$(window).resize(this.resize);
$(window).focus(function(){windowfocus=true;im.windowfocus()});
$(window).focus(function(){windowfocus=true;im.windowfocus();reim.lastload();});
$(window).blur(function(){windowfocus=false});
//数秒
setInterval('reim.timeload()', 1000);
@@ -56,7 +57,7 @@ var reim={
inputfile:'allfileinput',
initpdbool:false,
updir:'reimchat',
urlparams:{noasyn:'yes'}, //不需要同步到文件平台上
urlparams:{noasyn:'no',shuiyin:'size'}, //不需要同步到文件平台上
onchange:function(d){
im.sendfileshow(d);
},
@@ -208,7 +209,7 @@ var reim={
getapiurl:function(m,a,lx){
if(lx=='gout')return this.outgroup.geturl(a);
if(lx=='zixun' || lx=='wait')m='rockkefu';
var dzs = 'api.php?m='+m+'&a='+a+'&cfrom=reim';
var dzs = 'api.php?m='+m+'&a='+a+'&cfrom=reim&adminid='+adminid+'&token='+token+'';
if(companynum)dzs+='&dwnum='+companynum+'';
return dzs;
},
@@ -235,6 +236,20 @@ var reim={
$('#mainreload').html(''+js.ling(12)+' 刷新中...');
this.initload(true);
},
lastload:function(){
if(!this.loadtime)this.loadtime = parseInt(js.now('time') * 0.001);
this.ajax(this.getapiurl('indexreim','loadhit'),{'time':this.loadtime}, function(ret){
var da = ret.data;
reim.lastloads(da);
});
},
lastloads:function(da){
this.loadtime = da.loadtime;
var i,ds=da.rows;
for(i=0;i<ds.length;i++){
this.showhistorys(ds[i], true);
}
},
//初始加载数据
initload:function(bo){
this.initbool = true;
@@ -248,6 +263,7 @@ var reim={
firstpid:0,
showdata:function(ret){
if(!ret.userjson)return;
this.loadtime = ret.loadtime;
this.lastloaddt = ret.loaddt;
this.maindata.darr = js.decode(ret.deptjson);
this.maindata.uarr = js.decode(ret.userjson);
@@ -339,7 +355,7 @@ var reim={
return;
}
this.searchright.setData(d);
this.searchright.showAt(off.left+1,off.top+25,$('#reim_headercenter').width()-2);
this.searchright.showAt(off.left+1,off.top+30);
},
websocketlink:function(a){
if(this.connectbool){
@@ -476,7 +492,10 @@ var reim={
this.otherlogins();
return;
}
if(d.optdt){
var time = parseInt(js.now('time', d.optdt) * 0.001);
this.loadtime = time;
}
if(lx=='user' || lx=='group'){
if(sendid!=adminid)this.receivechat(d);
}
@@ -640,7 +659,7 @@ var reim={
showhistorydata:{},
showhistorys:function(d,pad, lex, glx){
var s,ty,o=$('#historylist'),d1,st,nas=d.names,qz=d.qian;
var num = ''+d.type+'_'+d.receid+'';
var num = ''+d.type+'_'+d.receid+'';if(num==this.nowtabs)lex=true;
this.showhistorydata[num]=d;
$('#history_'+num+'').remove();
st = d.stotal;if(st=='0')st='';
@@ -1189,7 +1208,7 @@ var reim={
});
return;
}
if(nwjsgui){
if(nwjsgui || 1==1){
js.loading('退出中...');
js.ajax(this.getapiurl('login','loginexit'),{},function(ret){
js.setoption('autologin', '0');
@@ -1234,6 +1253,7 @@ var reim={
js.setoption('setchatlistw', ''+kg+'');
},
cogshow:function(){
//nw.Window.open('file:///F:/IIS/demo/webrtc_v5_latest/quick-demo-js/index.html');return;
var chs= (this.getsound())?'checked':'';
var ch1= (this.getzhuom())?'checked':'';
var num = 'userinfo_cogshow';