Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐少华
midjourney-proxy
Commits
5a771ae5
Commit
5a771ae5
authored
Aug 22, 2019
by
杨涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加日志
parent
344f7d3b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
WeixinClockBizImpl.java
.../pcloud/book/weixinclock/biz/impl/WeixinClockBizImpl.java
+4
-1
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/weixinclock/biz/impl/WeixinClockBizImpl.java
View file @
5a771ae5
...
@@ -362,6 +362,7 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
...
@@ -362,6 +362,7 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
@Override
@Override
@ParamLog
(
"校验是否为该群的打卡关键字"
)
@ParamLog
(
"校验是否为该群的打卡关键字"
)
public
Boolean
checkWeixinClockKeyword
(
String
content
,
String
weixinGroupId
)
throws
BizException
{
public
Boolean
checkWeixinClockKeyword
(
String
content
,
String
weixinGroupId
)
throws
BizException
{
LOGGER
.
info
(
"content----->"
+
content
+
"weixinGroupId----->"
+
weixinGroupId
);
//简单过滤非关键词的词
//简单过滤非关键词的词
if
(
StringUtil
.
isEmpty
(
content
)
||
content
.
length
()
>
10
)
{
if
(
StringUtil
.
isEmpty
(
content
)
||
content
.
length
()
>
10
)
{
return
null
;
return
null
;
...
@@ -374,7 +375,8 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
...
@@ -374,7 +375,8 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"bookGroupClassifyId"
,
classifyQrcodeInfo
.
getClassifyId
());
paramMap
.
put
(
"bookGroupClassifyId"
,
classifyQrcodeInfo
.
getClassifyId
());
String
aimKeyword
=
weixinClockGroupClassifyDao
.
getKeywordByGroupClassify
(
paramMap
);
String
aimKeyword
=
weixinClockGroupClassifyDao
.
getKeywordByGroupClassify
(
paramMap
);
return
content
.
equals
(
aimKeyword
);
LOGGER
.
info
(
"aimKeyword="
+
aimKeyword
+
"content="
+
content
);
return
content
.
equalsIgnoreCase
(
aimKeyword
);
}
}
private
String
getClockRankUrl
(
String
wxGroupId
,
String
wxUserId
){
private
String
getClockRankUrl
(
String
wxGroupId
,
String
wxUserId
){
...
@@ -424,6 +426,7 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
...
@@ -424,6 +426,7 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
@ParamLog
(
"为微信群打卡关键词,发送关键词信息"
)
@ParamLog
(
"为微信群打卡关键词,发送关键词信息"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Boolean
sendKeywordMessage
(
String
content
,
String
userWxId
,
String
wechatGroupId
,
String
wxId
,
String
ip
)
{
public
Boolean
sendKeywordMessage
(
String
content
,
String
userWxId
,
String
wechatGroupId
,
String
wxId
,
String
ip
)
{
LOGGER
.
info
(
"接受到的关键词信息"
+
content
);
GroupClassifyQrcodeDTO
classifyQrcodeInfo
=
bookGroupClassifyBiz
.
getClassifyQrcodeInfo
(
wechatGroupId
);
GroupClassifyQrcodeDTO
classifyQrcodeInfo
=
bookGroupClassifyBiz
.
getClassifyQrcodeInfo
(
wechatGroupId
);
if
(
null
==
classifyQrcodeInfo
){
if
(
null
==
classifyQrcodeInfo
){
return
null
;
return
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