...
|
...
|
@@ -235,9 +235,9 @@ 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('预告开始时间不能早于当前时间');
|
|
|
}
|
|
|
}
|
...
|
...
|
|