处理系统异常时登录无反应问题 (#276)

* 优化百度编辑器,修复编辑器插入的图片不能预览问题

* 处理系统异常时登录无反应问题
This commit is contained in:
小胡 2024-12-16 15:52:33 +08:00 committed by GitHub
parent e232950802
commit e3e46ac76f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 16 deletions

View File

@ -1474,12 +1474,7 @@ $_G[siteurl]',
'community_edition'=>'社区版',
'title_admincp'=>'管理员登录入口',
'forbid_folder_to_sub_folder'=>'目标文件夹是源文件夹的子文件夹',
//系统出错通知
'Error'=>'{errormsg},详情请前往系统日志中查看。',
'Error_wx'=>'你收到了{title}',
'Error_redirecturl'=>'{url}',
'Error_title'=>'{title}',
'system_error'=>'系统异常!',
);
?>

View File

@ -11,23 +11,19 @@ function loginsub(formid,rspaceid){
var type = 'json';
jQuery.post(url+'&returnType='+type,formData,function(json){
if(json['success']){
showmessage(json['success']['message'],"success",0,1);
location.href=json['success']['url_forward'];
/* jQuery('#succeedmessage_href').href = json['success']['url_forward'];
jQuery('#main_message').hide();
jQuery('#main_succeed').show();
jQuery('#succeedlocation').html(json['success']['message']);
jQuery('#succeedmessage_href').attr('href',json['success']['url_forward']);
setTimeout("window.location.href ='"+json['success']['url_forward']+"';", 3000);*/
}else if(json['error']){
jQuery('#'+rspaceid).html(json['error']);
}else{
jQuery('#'+rspaceid).html(__lang.system_busy);
}
},'json');
},'json')
.fail(function (jqXHR, textStatus, errorThrown) {
showmessage(__lang.system_error, 'error', '3000', 1);
jQuery('#'+rspaceid).html(__lang.system_error);
});
}
function lostpass(contid,formid,rspaceid){
var url = jQuery('#'+formid).attr('action');