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