Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
afanti-open-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
java-ms
afanti-open-api
Commits
1a0ca895
Commit
1a0ca895
authored
Sep 25, 2024
by
许润龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改:活动视频、直播数据详情数据接口
parent
d8912115
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
BaseController.java
...om/afanticar/afantiopenapi/controller/BaseController.java
+4
-0
No files found.
src/main/java/com/afanticar/afantiopenapi/controller/BaseController.java
View file @
1a0ca895
...
...
@@ -6,6 +6,7 @@ import cn.hutool.core.date.DateUtil;
import
cn.hutool.core.util.StrUtil
;
import
com.afanticar.afantiopenapi.model.BaseResponse
;
import
com.afanticar.afantiopenapi.model.dto.FawActivityDTO
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
...
...
@@ -103,6 +104,9 @@ public class BaseController {
if
(
DateUtil
.
between
(
publishDateEnd
,
publishDateStart
,
DateUnit
.
DAY
)
>
dateNum
)
{
return
BaseController
.
error
(
"10010"
,
"时间跨度最大为31天!"
);
}
if
(
CollectionUtils
.
isEmpty
(
dto
.
getActivityIds
())
||
dto
.
getActivityIds
().
size
()
>
5
)
{
return
BaseController
.
error
(
"10010"
,
"活动ID不能为空,最大5个!"
);
}
dto
.
setEnd
(
publishDateEnd
);
dto
.
setStart
(
publishDateStart
);
dto
.
setCurrent
(
dto
.
getCurrent
()
==
null
?
1
:
dto
.
getCurrent
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment