Authored by xiaofeng.yao@yoho.cn

编辑直播中的房间预告开始时间不验证

... ... @@ -235,12 +235,12 @@ class Room extends \yii\db\ActiveRecord
if (empty($data['app'])){
throw new \Exception('未选择业务线');
}
if (($this->living != Params::LIVING) && !empty($data['starting_time'])){
if (!empty($data['starting_time'])){
$data['starting_time'] = (int)strtotime($data['starting_time']);
if ($data['starting_time'] <= time()){
if (($this->living != Params::LIVING) && $data['starting_time'] <= time()){
throw new \Exception('预告开始时间不能早于当前时间');
}
}
}
@sort($data['app']);
$data['app'] = implode(',', $data['app']);
... ...