This commit is contained in:
wangjinlei
2023-06-02 10:12:22 +08:00
parent f1279814b2
commit 09a2f3231f
4 changed files with 628 additions and 446 deletions

View File

@@ -164,7 +164,7 @@ class Special extends Controller {
$f = [];
//获取作者
foreach ($list as $k => $v){
if(strtotime($v['deadline'])< time()){
if(strtotime($v['deadline'])<= time()){
continue;
}
$frag = '';
@@ -180,6 +180,7 @@ class Special extends Controller {
$v['editor'] = $frag;
$f[] = $v;
}
$re['is_show'] = count($list)>0?'true':'false';
$re['specials'] = $f;
return jsonSuccess($re);
}
@@ -265,6 +266,12 @@ class Special extends Controller {
->select();
//获取作者
foreach ($list as $k => $v){
if(strtotime($v['deadline'])<= time()){
$cou = $this->article_obj->where('journal_special_id',$v['journal_special_id'])->where('state',0)->count();
if($cou<3){
continue;
}
}
$frag = '';
$caches = $this->journal_special_to_editor_obj
->field('j_journal_special_editor.*')