Authored by xiaofeng.yao@yoho.cn

编辑直播间时去掉 未到预告时间 状态置成未开始的 判断

... ... @@ -207,9 +207,6 @@ class Room extends \yii\db\ActiveRecord
if ( ($data['starting_time']>0) && ($data['starting_time'] <= time())){
$data['starting_time'] = 0;
}
if ($data['starting_time'] > time()){//如果预告开始时间设置为当前时间之后,房间直播状态设置为未开始
$data['living'] = 0;
}
if ($data['best'] > 0){
$count = $this->find()->where(['and',['!=','best','0'],['!=','id',$this->id]])->count();
... ...