Commit 0fa0f1fe authored by sugar's avatar sugar

reward

parent ae79a3f3
......@@ -44,6 +44,7 @@ class Index extends Frontend
}
$CourseArticleList = CourseArticleModel::where(['class_id' =>['in',$dynamic_class_ids],'index_type'=>1])->order('orderby asc')->limit(6)->select();
dump($CourseArticleList);die;
foreach ($CourseArticleList as $ke => $va){
$CourseArticleList[$ke]['title'] = mb_substr_content($va['title'],25);
$CourseArticleList[$ke]['date'] = date('Y-m-d',$va['createtime']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment