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

@@ -112,7 +112,7 @@ class Journal extends Controller {
$rearr = $journal_info['relate']==''?[]:explode(',',$journal_info['relate']);
$relatelist = $this->journal_obj->where('journal_id','in',$rearr)->where('state',0)->select();
$absList = $this->journal_abs_obj->where('journal_id', $data['journal_id'])->where('state', 0)->order('sort')->select();
$stageList = $this->journal_stage_obj->where('journal_id', $data['journal_id'])->where('is_publish', 1)->where('state', 0)->order('stage_year desc,stage_vol desc')->select();
$stageList = $this->journal_stage_obj->where('journal_id', $data['journal_id'])->where('is_publish', 1)->where('state', 0)->order('stage_year desc,stage_no desc')->select();
return json(['code' => 0, 'msg' => 'success', 'data' => ['journal' => $journal_info,'relats'=>$relatelist ,'journalAbs' => $absList, 'journalStage' => $stageList]]);
}

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>";
}
}