ZxcZxc123 2 年之前
父节点
当前提交
5cb955e13e
共有 1 个文件被更改,包括 10 次插入5 次删除
  1. 10 5
      app/api/controller/Education.php

+ 10 - 5
app/api/controller/Education.php

@@ -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);
     }
 
+
+
 }