|
@@ -301,8 +301,14 @@ class User extends BaseModel
|
|
|
$data[$k] = array_merge($v,$item);
|
|
|
}
|
|
|
}
|
|
|
- $data = empty($data)?[]:$data;
|
|
|
- return ["list" => $data, "pageSize" => $post["pageSize"],"page"=>$post["page"],"totalCount"=>$totalCount];
|
|
|
+ $datatwo = [];
|
|
|
+ foreach($data as $v){
|
|
|
+ if($v['is_show'] == 1){
|
|
|
+ $datatwo[] = $v;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $datatwo = empty($datatwo)?[]:$data;
|
|
|
+ return ["list" => $datatwo, "pageSize" => $post["pageSize"],"page"=>$post["page"],"totalCount"=>$totalCount];
|
|
|
}
|
|
|
|
|
|
|
|
@@ -379,13 +385,13 @@ class User extends BaseModel
|
|
|
$data[$k]["parent_time"] = date("Y-m-d H:i:s",$v["parent_time"]);
|
|
|
}
|
|
|
}
|
|
|
- $datatwo = [];
|
|
|
- foreach($data as $v){
|
|
|
- if($v['is_show'] == 1){
|
|
|
- $datatwo[] = $v;
|
|
|
- }
|
|
|
- }
|
|
|
- return ["list" => $datatwo, "pageSize" => $post["pageSize"],"page"=>$post["page"],"totalCount"=>$totalCount];
|
|
|
+// $datatwo = [];
|
|
|
+// foreach($data as $v){
|
|
|
+// if($v['is_show'] == 1){
|
|
|
+// $datatwo[] = $v;
|
|
|
+// }
|
|
|
+// }
|
|
|
+ return ["list" => $data, "pageSize" => $post["pageSize"],"page"=>$post["page"],"totalCount"=>$totalCount];
|
|
|
}
|
|
|
|
|
|
/**
|