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
7f508153
Commit
7f508153
authored
Aug 23, 2021
by
刘基明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
主题被删时删除id
parent
1a0dbd23
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
CallBackController.java
...va/com/tanpu/community/controller/CallBackController.java
+0
-1
NotificationManager.java
...java/com/tanpu/community/manager/NotificationManager.java
+4
-1
No files found.
community-service/src/main/java/com/tanpu/community/controller/CallBackController.java
View file @
7f508153
...
...
@@ -43,7 +43,6 @@ public class CallBackController {
@PostMapping
(
value
=
"/picCheck/callback"
)
public
String
picCheck
(
String
checksum
,
String
content
)
{
log
.
info
(
"checksum:{}"
,
checksum
);
Map
<
String
,
Object
>
response
=
JsonUtil
.
toMap
(
content
);
String
fileKey
=
(
String
)
response
.
get
(
"object"
);
boolean
freezed
=
(
boolean
)
response
.
get
(
"freezed"
);
...
...
community-service/src/main/java/com/tanpu/community/manager/NotificationManager.java
View file @
7f508153
...
...
@@ -31,7 +31,6 @@ import com.tanpu.community.service.NotificationService;
import
com.tanpu.community.service.ThemeService
;
import
com.tanpu.community.service.TopicService
;
import
com.tanpu.community.util.ConvertUtil
;
import
com.tanpu.community.util.TimeUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -102,6 +101,7 @@ public class NotificationManager {
themeNotifyQo
.
setFormerThemeId
(
commentEntity
.
getThemeId
());
}
ThemeEntity
former
=
themeService
.
queryByThemeId
(
themeNotifyQo
.
getFormerThemeId
());
if
(
former
!=
null
)
{
themeNotifyQo
.
setFormerUserName
(
currentUser
.
getNickName
());
if
(
StringUtils
.
isNotBlank
(
former
.
getTopicId
())){
...
...
@@ -117,6 +117,9 @@ public class NotificationManager {
if
(
ThemeTypeEnum
.
LONG_TEXT
.
getCode
().
equals
(
former
.
getThemeType
()))
{
themeNotifyQo
.
setFormerContent
(
former
.
getTitle
());
}
}
else
{
// 引用主题已被删除
themeNotifyQo
.
setForwardThemeId
(
null
);
}
}
// 外部话题
...
...
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