Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
涂亚平
/
subsidy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 28fc8087
authored
Oct 13, 2022
by
涂亚平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
插入视频逻辑修改
1 parent
716cd459
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
src/main/java/com/subsidy/service/impl/VodPlayHistoryServiceImpl.java
src/main/resources/application.properties
src/main/java/com/subsidy/service/impl/VodPlayHistoryServiceImpl.java
View file @
28fc808
...
...
@@ -76,14 +76,14 @@ public class VodPlayHistoryServiceImpl extends ServiceImpl<VodPlayHistoryMapper,
}
//是否超过时长 没超过 false 超过 true
if
(
total
+
vodPlayHistoryDO
.
getPlayLength
()
>
classDictDO
.
getLimitHour
()
*
3600
)
{
int
playLength
=
classDictDO
.
getLimitHour
()
*
3600
-
total
;
if
(
total
+
vodPlayHistoryDO
.
getPlayLength
()
>
6
*
3600
)
{
int
playLength
=
6
*
3600
-
total
;
vodPlayHistoryDO
.
setPlayLength
(
playLength
);
vodPlayHistoryDO
.
setPlayCount
(
1
);
if
(
playLength
>
5
)
{
this
.
baseMapper
.
insert
(
vodPlayHistoryDO
);
}
throw
new
HttpException
(
13001
);
//
throw new HttpException(13001);
}
else
{
vodPlayHistoryDO
.
setPlayCount
(
1
);
this
.
baseMapper
.
insert
(
vodPlayHistoryDO
);
...
...
@@ -114,14 +114,14 @@ public class VodPlayHistoryServiceImpl extends ServiceImpl<VodPlayHistoryMapper,
}
//是否超过时长 没超过 false 超过 true
if
(
total
+
vodPlayHistoryDO
.
getPlayLength
()
>
classDictDO
.
getLimitHour
()
*
3600
)
{
int
playLength
=
classDictDO
.
getLimitHour
()
*
3600
-
total
;
if
(
total
+
vodPlayHistoryDO
.
getPlayLength
()
>
6
*
3600
)
{
int
playLength
=
6
*
3600
-
total
;
vodPlayHistoryDO
.
setPlayLength
(
playLength
);
vodPlayHistoryDO
.
setPlayCount
(
1
);
if
(
playLength
>
5
)
{
this
.
baseMapper
.
insert
(
vodPlayHistoryDO
);
}
throw
new
HttpException
(
13001
);
//
throw new HttpException(13001);
}
}
else
{
vodPlayHistoryDO
.
setPlayCount
(
1
);
...
...
src/main/resources/application.properties
View file @
28fc808
# 环境配置
spring.profiles.active
=
dev
spring.profiles.active
=
prod
#和CPU数
spring.server.acceptorThreadCount
=
600
spring.server.minSpareThreads
=
100
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment