20201112
This commit is contained in:
@@ -259,8 +259,8 @@ class Journal extends Controller {
|
||||
* @return parentList:array#
|
||||
*/
|
||||
public function getParent(){
|
||||
// $data = $this->request->post();
|
||||
$data['journal_id'] = 9;
|
||||
$data = $this->request->post();
|
||||
// $data['journal_id'] = 9;
|
||||
$res = $this->journal_topic_obj
|
||||
->where('journal_id',$data['journal_id'])
|
||||
->where('state',0)
|
||||
@@ -319,7 +319,9 @@ class Journal extends Controller {
|
||||
return $vv;
|
||||
}
|
||||
foreach ($res as $v){
|
||||
$vv['child'][] = $this->getChieldarr($v, $res);
|
||||
if($v['parent_id'] == $vv['journal_topic_id']){
|
||||
$vv['child'][] = $this->getChieldarr($v, $res);
|
||||
}
|
||||
}
|
||||
return $vv;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user