This commit is contained in:
wangjinlei
2021-01-06 16:59:20 +08:00
parent 6784f78323
commit 83c540a4bd
2 changed files with 17 additions and 1 deletions

View File

@@ -212,5 +212,21 @@ class Main extends Controller {
public function test() {
echo md5('123456');
}
public function rewrite($type){
$frag = '';
switch($type){
case 'tmr':
$frag = 'https://www.tmrjournals.com/stages.html?J_num=1';
break;
case 'lr':
$frag = 'https://www.tmrjournals.com/stages.html?J_num=14';
break;
default :
$frag = 'https://www.tmrjournals.com/stages.html?J_num=1';
break;
}
echo "<script>location.href='$frag'</script>";
}
}