ZxcZxc123 2 år sedan
förälder
incheckning
5cb955e13e
1 ändrade filer med 10 tillägg och 5 borttagningar
  1. 10 5
      app/api/controller/Education.php

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

@@ -19,15 +19,20 @@ class Education
         if ($type1 !== "") {
         if ($type1 !== "") {
             $where["type1"] = $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");
         $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);
         return app('json')->success($result);
     }
     }
 
 
+
+
 }
 }