Commit b0d27ced authored by wuxiaoli's avatar wuxiaoli

no message

parent 387094ea
......@@ -60,11 +60,11 @@ class Index extends Backend
}
}
$CourseArticleList = CourseArticleModel::where(['class_id' =>['in',$dynamic_class_ids],'index_type'=>1])->order('createtime desc')->limit(6)->select();
foreach ($CourseArticleList as $ke => $va){
$CourseArticleList = CourseArticleModel::where(['class_id' =>['in',$dynamic_class_ids],'index_type'=>1])->order('createtime desc')->field('*,FROM_UNIXTIME(createtime,"%Y-%m-%d") as date')->limit(6)->select();
/* 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