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
e8d4be70059e10cd2e48e7c2d1a2fccc51f71fd0
1 parent
c7c619db
编辑直播中的房间预告开始时间不验证
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
backend/models/Room.php
backend/models/Room.php
View file @
e8d4be7
...
...
@@ -235,7 +235,7 @@ class Room extends \yii\db\ActiveRecord
if
(
empty
(
$data
[
'app'
])){
throw
new
\Exception
(
'未选择业务线'
);
}
if
(
!
empty
(
$data
[
'starting_time'
])){
if
(
(
$this
->
living
!=
Params
::
LIVING
)
&&
!
empty
(
$data
[
'starting_time'
])){
$data
[
'starting_time'
]
=
(
int
)
strtotime
(
$data
[
'starting_time'
]);
if
(
$data
[
'starting_time'
]
<=
time
()){
throw
new
\Exception
(
'预告开始时间不能早于当前时间'
);
...
...
Please
register
or
login
to post a comment