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