|
|
@@ -370,49 +370,6 @@ class Pub extends BaseController
|
|
|
}
|
|
|
|
|
|
|
|
|
- /**
|
|
|
- * 课程列表页面
|
|
|
- */
|
|
|
-// public function index()
|
|
|
-// {
|
|
|
-// $userInfo = Db::name("document_user")->where('gr_id', $this->$gr_id)->find();
|
|
|
-//
|
|
|
-// $EducationModel = new Education();
|
|
|
-// $where["audit"] = 1;
|
|
|
-// $type1 = input("type1", "");
|
|
|
-// if ($type1 !== "") {
|
|
|
-// $where["type1"] = $type1;
|
|
|
-// }
|
|
|
-// $grlist = $EducationModel->getEducationGrList($where, 20, "od asc,recommend desc,gr_id desc");
|
|
|
-//
|
|
|
-// $recommendList = $EducationModel->getRecommendEducationGrList(9, "od asc,recommend desc,gr_id desc");
|
|
|
-//
|
|
|
-// $result = [
|
|
|
-// 'userInfo' => $userInfo,
|
|
|
-// 'grlist' => $grlist,
|
|
|
-// 'recommendList' => $recommendList,
|
|
|
-// ];
|
|
|
-// return json($result);
|
|
|
-// }
|
|
|
- public function index()
|
|
|
- {
|
|
|
- $EducationModel = new Education();
|
|
|
- $where["audit"] = 1;
|
|
|
- $type1 = input("type1", "");
|
|
|
- if ($type1 !== "") {
|
|
|
- $where["type1"] = $type1;
|
|
|
- }
|
|
|
- $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,
|
|
|
- 'recommendList' => $recommendList,
|
|
|
- ];
|
|
|
- return json($result);
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
/**
|
|
|
* bug提交
|