Toggle navigation
Toggle navigation
This project
Loading...
Sign in
web
/
yoho-live
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xiaofeng.yao@yoho.cn
8 years ago
Commit
55a13289d4428309797297f211687c999878d5c1
1 parent
e8d4be70
编辑直播中的房间预告开始时间不验证
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
backend/models/Room.php
backend/models/Room.php
View file @
55a1328
...
...
@@ -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'
]);
...
...
Please
register
or
login
to post a comment