|
|
@@ -19,15 +19,20 @@ class Education
|
|
|
if ($type1 !== "") {
|
|
|
$where["type1"] = $type1;
|
|
|
}
|
|
|
+
|
|
|
+ if ($type1 == 0) {
|
|
|
+ $where["type1"] = 0;
|
|
|
+ } elseif ($type1 == 1) {
|
|
|
+ $where["type1"] = 1;
|
|
|
+ }
|
|
|
+
|
|
|
$grlist = $EducationModel->getEducationGrList($where, 20, "od asc,recommend desc,gr_id desc");
|
|
|
|
|
|
-// $recommendList = $EducationModel->getRecommendEducationGrList(9, "od asc,recommend desc,gr_id desc");
|
|
|
+ $result = ['grlist' => $grlist,];
|
|
|
|
|
|
- $result = [
|
|
|
- 'grlist' => $grlist,
|
|
|
-// 'recommendList' => $recommendList,
|
|
|
- ];
|
|
|
return app('json')->success($result);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
}
|