浏览代码

返回字段加join

visuddhinanda 2 年之前
父节点
当前提交
2888a56700
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      app/Http/Controllers/CourseController.php

+ 4 - 1
app/Http/Controllers/CourseController.php

@@ -21,7 +21,10 @@ class CourseController extends Controller
     {
         //
 		$result=false;
-		$indexCol = ['id','title','subtitle','cover','content','content_type','teacher','start_at','end_at','publicity','updated_at','created_at'];
+		$indexCol = ['id','title','subtitle',
+                     'cover','content','content_type',
+                     'teacher','start_at','end_at','join',
+                     'publicity','updated_at','created_at'];
 		switch ($request->get('view')) {
             case 'new':
                 //最新公开课程列表