Commit 6eb94865 authored by xiabin's avatar xiabin

修改时长展示的问题

parent 27a94f59
...@@ -185,7 +185,7 @@ class Course extends \yii\db\ActiveRecord ...@@ -185,7 +185,7 @@ class Course extends \yii\db\ActiveRecord
public static function getRecommendByClassId($classID) public static function getRecommendByClassId($classID)
{ {
$recommend = self::RECOMMEDN; $recommend = self::RECOMMEDN;
return self::find()->select('id,name,intro,preview_pic,recommend,created_at')->where("class_id=:class_id and recommend = $recommend", [':class_id' => $classID])->asArray()->all(); return self::find()->select('id,name,intro,preview_pic,recommend,created_at')->where("class_id=:class_id and recommend = $recommend and status = :status", [':class_id' => $classID,':status'=> self::STATUS_OK])->asArray()->all();
} }
/** /**
......
...@@ -25,6 +25,7 @@ var Utils = { ...@@ -25,6 +25,7 @@ var Utils = {
result.push(this.pad(min,2)); result.push(this.pad(min,2));
result.push(this.pad(sec,2)); result.push(this.pad(sec,2));
}else{ }else{
result.push('00');
result.push(this.pad(sec,2)); result.push(this.pad(sec,2));
} }
return result.join(':'); return result.join(':');
......
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