20201112
This commit is contained in:
@@ -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]]);
|
||||
}
|
||||
|
||||
|
||||
@@ -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>";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user