1
This commit is contained in:
@@ -1428,11 +1428,14 @@ class Journal extends Controller
|
||||
if (!$rule->check($data)) {
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$journals[] = 0;
|
||||
if($data['journal_id'] != 22){
|
||||
$journals[] = 0;
|
||||
}
|
||||
if ($data['journal_id'] != 0) {
|
||||
$journals[] = $data['journal_id'];
|
||||
}
|
||||
$list = $this->journal_for_author->where('journal_id', 'in', $journals)->where('pid', 0)->where('jfa_state', 0)->order("sort desc")->select();
|
||||
// $list = $this->journal_for_author->where('journal_id', 'in', $journals)->where('pid', 0)->where('jfa_state', 0)->order("sort desc")->select();
|
||||
$list = $this->journal_for_author->where('pid', 0)->where('jfa_state', 0)->order("sort desc")->select();
|
||||
foreach ($list as $k => $v) {
|
||||
$cache_list = $this->journal_for_author->where('journal_id', 'in', $journals)->where('pid', $v['jfa_id'])->where('jfa_state', 0)->order("sort desc")->select();
|
||||
foreach ($cache_list as $key => $val) {
|
||||
|
||||
Reference in New Issue
Block a user