Update site.js

fix bugs
This commit is contained in:
jd82k 2025-02-20 22:38:37 -08:00 committed by GitHub
parent d992541a78
commit 6ca80e3d8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1551,7 +1551,7 @@ function to301(siteName, type, obj){
if (res.status) {
var data = res.data.result;
data.forEach(function(item){
var lan_r_type = item.r_type == 0 ? "永久重定向" : "临时重定向";
var lan_r_type = item.r_type == 0 ? "临时重定向" : "永久重定向";
var keep_path = item.keep_path == 0 ? "不保留" : "保留";
var switchProxy = '<span onclick="toRedirect(\''+siteName+'\',\''+ item.id +'\',10)" style="color:rgb(92, 184, 92);" class="btlink glyphicon glyphicon-play"></span>';
@ -3248,4 +3248,4 @@ function tryRestartPHP(siteName){
layer.msg( 'PHP['+phpversion+']'+(data.status?'重启成功!':'重启失败!'),{icon:data.status?1:2,time:3000,shade: [0.3, '#000']});
},'json');
},'json');
}
}