This commit is contained in:
wangjinlei
2022-06-13 15:49:02 +08:00
parent 63bdfda109
commit 669d909abf
2 changed files with 3 additions and 3 deletions

View File

@@ -77,11 +77,11 @@ class Journal extends Controller {
* @journalList title:标题 issn:issn editorinchief:editorinchief acceptance:acceptance finaldecision:finaldecision apc:apc
*/
public function getJournalList() {
$where['j_journal.state'] = 0;
$res = $this->journal_obj
->field('j_journal.*,j_admin.realname realname')
->join('j_admin', 'j_admin.admin_id = j_journal.editor_id', 'LEFT')
->where($where)
->where('j_journal.state',0)
->where('journal_id','<>',25)//临时去掉25号新刊
->order(['j_journal.sort desc', 'j_journal.journal_id'])
->select();
return json(['code' => 0, 'msg' => 'success', 'data' => ['journalList' => $res]]);

View File

@@ -444,7 +444,7 @@ class Publish extends Controller {
foreach ($frag1 as $k => $v){
$frag1[$k]['pj_tou'] = intval($pjarr[$k]['tou']/3);
if($k!='de'){
$frag1[$k]['pj_wei'] = intval($pjarr[$k]['wei']/3);
$frag1[$k]['pj_wei'] = intval(isset($pjarr[$k]['wei'])?$pjarr[$k]['wei']/3:0);
}
}