|
|
@@ -373,10 +373,29 @@ 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()
|
|
|
{
|
|
|
- $userInfo = Db::name("document_user")->where('uid', $this->uid)->find();
|
|
|
-
|
|
|
$EducationModel = new Education();
|
|
|
$where["audit"] = 1;
|
|
|
$type1 = input("type1", "");
|
|
|
@@ -388,7 +407,6 @@ class Pub extends BaseController
|
|
|
$recommendList = $EducationModel->getRecommendEducationGrList(9, "od asc,recommend desc,gr_id desc");
|
|
|
|
|
|
$result = [
|
|
|
- 'userInfo' => $userInfo,
|
|
|
'grlist' => $grlist,
|
|
|
'recommendList' => $recommendList,
|
|
|
];
|