记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
221c6def
Commit
221c6def
authored
Dec 01, 2021
by
sunyuntian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加时间戳
parent
225e4d9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
ConsumerSweetPosterRdsReceiverConfig.java
...er/sweet/config/ConsumerSweetPosterRdsReceiverConfig.java
+1
-1
SweetStrawberryPosterController.java
...ice/sweet/controller/SweetStrawberryPosterController.java
+8
-4
No files found.
liquidnet-bus-service/liquidnet-service-consumer-all/liquidnet-service-consumer-sweet/src/main/java/com/liquidnet/service/consumer/sweet/config/ConsumerSweetPosterRdsReceiverConfig.java
View file @
221c6def
...
...
@@ -33,7 +33,7 @@ public class ConsumerSweetPosterRdsReceiverConfig {
return
StreamMessageListenerContainer
.
create
(
factory
,
options
);
}
/*
*
*
活动海报
* */
private
Subscription
posterSqlRemind
(
StreamMessageListenerContainer
<
String
,
MapRecord
<
String
,
String
,
String
>>
listenerContainer
,
int
t
)
{
return
listenerContainer
.
receiveAutoAck
(
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/controller/SweetStrawberryPosterController.java
View file @
221c6def
...
...
@@ -2,7 +2,8 @@ package com.liquidnet.service.sweet.controller;
import
com.liquidnet.common.third.shumei.util.ShumeiUtil
;
import
com.liquidnet.commons.lang.util.CurrentUtil
;
import
com.liquidnet.commons.lang.util.DateUtil
;
import
com.liquidnet.commons.lang.util.StringUtil
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.sweet.dto.param.poster.SweetStrawberryParam
;
...
...
@@ -14,6 +15,8 @@ import io.swagger.annotations.ApiOperation;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
/**
* <p>
* 2021草莓音乐节海报活动表 前端控制器
...
...
@@ -43,14 +46,15 @@ public class SweetStrawberryPosterController {
@GetMapping
(
"sensitiveText"
)
@ApiOperation
(
"敏感词判断"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"nickname"
,
value
=
"nickname"
,
required
=
false
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"customText"
,
value
=
"customText"
,
required
=
false
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"nickname"
,
value
=
"nickname"
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"customText"
,
value
=
"customText"
),
})
public
ResponseDto
<
Boolean
>
sensitiveText
(
@RequestParam
(
value
=
"nickname"
,
required
=
false
)
String
nickname
,
@RequestParam
(
value
=
"customText"
,
required
=
false
)
String
customText
){
String
currentUid
=
CurrentUtil
.
getCurrentUid
();
// String currentUid = CurrentUtil.getCurrentUid();
String
currentUid
=
DateUtil
.
now
().
getTime
()+
""
;
if
(
StringUtil
.
isNotEmpty
(
nickname
))
{
if
(!
shumeiUtil
.
checkText
(
currentUid
,
nickname
))
{
...
...
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