Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tanpu-community
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
探普后端
tanpu-community
Commits
9487d269
Commit
9487d269
authored
Aug 10, 2021
by
刘基明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步专栏才做转播校验
parent
568ea178
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
CreateThemeReq.java
...m/tanpu/community/api/beans/req/theme/CreateThemeReq.java
+1
-1
ThemeManager.java
...c/main/java/com/tanpu/community/manager/ThemeManager.java
+5
-2
No files found.
community-api/src/main/java/com/tanpu/community/api/beans/req/theme/CreateThemeReq.java
View file @
9487d269
...
@@ -30,7 +30,7 @@ public class CreateThemeReq {
...
@@ -30,7 +30,7 @@ public class CreateThemeReq {
@ApiModelProperty
(
value
=
"修改,则传入正在编辑的ThemeId"
)
@ApiModelProperty
(
value
=
"修改,则传入正在编辑的ThemeId"
)
private
String
editThemeId
=
""
;
private
String
editThemeId
=
""
;
@ApiModelProperty
(
"是否同步到社区 0为不同步 1为同步
不传也为
同步"
)
@ApiModelProperty
(
"是否同步到社区 0为不同步 1为同步
默认不
同步"
)
private
Integer
syncToNewComm
=
0
;
private
Integer
syncToNewComm
=
0
;
}
}
community-service/src/main/java/com/tanpu/community/manager/ThemeManager.java
View file @
9487d269
...
@@ -202,7 +202,10 @@ public class ThemeManager {
...
@@ -202,7 +202,10 @@ public class ThemeManager {
// 校验参数
// 校验参数
checkAttachment
(
req
.
getContent
());
checkAttachment
(
req
.
getContent
());
// 转播权限校验
// 转播权限校验
liveRelayCheck
(
userId
,
req
.
getContent
());
if
(
1
==
req
.
getSyncToNewComm
()){
liveRelayCheck
(
userId
,
req
.
getContent
());
}
// 保存主题表
// 保存主题表
ThemeEntity
themeEntity
=
new
ThemeEntity
();
ThemeEntity
themeEntity
=
new
ThemeEntity
();
...
@@ -711,7 +714,7 @@ public class ThemeManager {
...
@@ -711,7 +714,7 @@ public class ThemeManager {
// 校验参数
// 校验参数
checkAttachment
(
req
.
getContent
());
checkAttachment
(
req
.
getContent
());
// 转播权限校验
// 转播权限校验
liveRelayCheck
(
userId
,
req
.
getContent
());
//
liveRelayCheck(userId, req.getContent());
// 保存主题表
// 保存主题表
ThemeEntity
themeEntity
=
new
ThemeEntity
();
ThemeEntity
themeEntity
=
new
ThemeEntity
();
...
...
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