期刊编辑调整
This commit is contained in:
@@ -142,6 +142,16 @@ class Journal extends Controller {
|
|||||||
$relatelist = $this->journal_obj->where('journal_id', 'in', $rearr)->where('state', 0)->select();
|
$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();
|
$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_no 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();
|
||||||
|
|
||||||
|
//获取期刊主编辑 chengxiaoling start 20250626
|
||||||
|
if(!empty($journal_info)){
|
||||||
|
$aBoard = $this->getJournalBoard(['issn' => $journal_info['issn'],'type' => 0]);
|
||||||
|
$aBoard = empty($aBoard['data']) ? [] : $aBoard['data'];
|
||||||
|
$sBoard = empty($aBoard) ? '' : implode("<br>", array_unique(array_column($aBoard, 'realname')));
|
||||||
|
$sBoard = trim($sBoard);
|
||||||
|
$journal_info['editorinchief'] = empty($sBoard) ? $journal_info['editorinchief'] : $sBoard;
|
||||||
|
}
|
||||||
|
//获取期刊主编辑 chengxiaoling end 20250626
|
||||||
return json(['code' => 0, 'msg' => 'success', 'data' => ['journal' => $journal_info, 'relats' => $relatelist, 'journalAbs' => $absList, 'journalStage' => $stageList]]);
|
return json(['code' => 0, 'msg' => 'success', 'data' => ['journal' => $journal_info, 'relats' => $relatelist, 'journalAbs' => $absList, 'journalStage' => $stageList]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1907,4 +1917,19 @@ class Journal extends Controller {
|
|||||||
$re['count'] = $count;
|
$re['count'] = $count;
|
||||||
return jsonSuccess($re);
|
return jsonSuccess($re);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @title 获取期刊编辑
|
||||||
|
* @description 获取期刊编辑接口
|
||||||
|
*/
|
||||||
|
private function getJournalBoard($aParam = []){
|
||||||
|
$sIssn = empty($aParam['issn']) ? '' : $aParam['issn'];
|
||||||
|
if(empty($sIssn)){
|
||||||
|
return json_encode(['status' => 2,'msg' => 'Parameter is empty']);
|
||||||
|
}
|
||||||
|
|
||||||
|
$sUrl = "http://api.tmrjournals.com/public/index.php/api/Supplementary/getJournalBoard";
|
||||||
|
$aResult = json_decode(myPost($sUrl,$aParam),true);
|
||||||
|
return $aResult;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user