This commit is contained in:
wangjinlei
2024-10-21 17:51:11 +08:00
parent f2960e6c79
commit 0e48e91ec9
2 changed files with 33 additions and 0 deletions

View File

@@ -587,6 +587,25 @@ class Journal extends Controller {
return json(['code' => 0, 'msg' => 'success', 'data' => ['stage' => $stage_info, 'articleList' => $list]]);
}
public function getJournalOnlineForLx(){
$data = $this->request->post();
$rule = new Validate([
"journal_id"=>"require"
]);
if(!$rule->check($data)){
return jsonError($rule->getError());
}
$journal_info = $this->journal_obj->where("journal_id",$data['journal_id'])->find();
if($journal_info['cycle']!=0){
return jsonError("error");
}
$stage_info = $this->journal_stage_obj->where("stage_year",date("Y"))->where("state",0)->find();
$list = $this->article_obj->where("journal_stage_id",$stage_info['journal_stage_id'])->where("lx_online",0)->where("state",0)->select();
$re['list'] = $list;
return jsonSuccess($re);
}
private function getAuthor($article) {
$where['article_id'] = $article['article_id'];
$where['state'] = 0;

View File

@@ -730,6 +730,20 @@ class Datebase extends Controller
}
public function dataPushForLx(){
$data = $this->request->post();
$rule = new Validate([
"article_id"=>"require"
]);
if(!$rule->check($data)){
return jsonError($rule->getError());
}
$article_info = $this->article_obj->where("article_id",$data['article_id'])->find();
}
public function Mycreate(){
$data = $this->request->post();
$url = $this->ts_base_url."api/dataApi/createTemplate";