20201112
This commit is contained in:
@@ -314,6 +314,7 @@ class Journal extends Controller {
|
|||||||
->where('journal_id',$data['journal_id'])
|
->where('journal_id',$data['journal_id'])
|
||||||
->where('state',0)
|
->where('state',0)
|
||||||
->where('is_final',0)
|
->where('is_final',0)
|
||||||
|
->order('sort desc')
|
||||||
->select();
|
->select();
|
||||||
//处理数组
|
//处理数组
|
||||||
$frag = [];
|
$frag = [];
|
||||||
@@ -327,7 +328,13 @@ class Journal extends Controller {
|
|||||||
$ff[] = $this->getpChieldarr($vv, $res);
|
$ff[] = $this->getpChieldarr($vv, $res);
|
||||||
// $frag[$kk] = $this->getChieldarr($vv,$res);
|
// $frag[$kk] = $this->getChieldarr($vv,$res);
|
||||||
}
|
}
|
||||||
return json(['code'=>0,'msg'=>'success','data'=>['parentList'=>$ff]]);
|
$fff = [];
|
||||||
|
foreach ($ff as $vvv){
|
||||||
|
foreach ($vvv as $vvvv){
|
||||||
|
$fff[] = $vvvv;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return json(['code'=>0,'msg'=>'success','data'=>['parentList'=>$fff]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getpChieldarr($vv,$res){
|
private function getpChieldarr($vv,$res){
|
||||||
|
|||||||
Reference in New Issue
Block a user