Commit b5936be0 authored by sugar's avatar sugar

reward

parent 2c644881
......@@ -70,7 +70,7 @@ class Index extends Frontend
foreach ($teachrunclass as $key => $val){
if($val['id'] == 45){//在线课堂
$TeachRunArticles = CourseVideoModel::where(['class_id' =>$val['id']])->order('createtime desc')->field('*,FROM_UNIXTIME(createtime,"%Y-%m-%d") as date')->limit(5)->select();
}elseif($val['id'] == 41){
}elseif($val['id'] == 41 || $val['id'] == 43){
$run_class_ids = [];
$teachsubclass = CourseClassModel::where(['pid' =>$val['id']])->field('id')->select();
foreach ($teachsubclass as $sub_ke => $sub_va){
......
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