Authored by xiaofeng.yao@yoho.cn

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

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