Authored by whb

视频bug

... ... @@ -95,7 +95,7 @@ class LiveController extends BaseController
->limit($pagination->limit)->all();
$liveMasterIds = [];
$masterList = new \stdClass();
foreach($videoList as $video) {
foreach($videoList as &$video) {
if(!empty($video->master_id)) {
$liveMasterIds[] = $video->master_id;
}
... ...
... ... @@ -126,7 +126,7 @@ class Video extends \yii\db\ActiveRecord
$sql = "v.url <>''";
break;
case 0://未上传回看视频
$sql = "v.url =''";
$sql = "v.url ='' OR v.url IS NULL";
break;
case -1:
default:
... ...
... ... @@ -53,3 +53,16 @@ use backend\widgets\YHGImage\Common\Images as CommonImages;
</form>
</div>
<script>
$(function(){
$("#upload_button").on("click", function()
{
var pic = $("input[name=pic]").val();
if(pic == "")
{
alert("头图不能为空");
return false;
}
});
});
</script>
... ...