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
f5896acb
Commit
f5896acb
authored
Dec 01, 2020
by
tc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug:[none] 日志太多的问题
parent
5ba9b93d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
13 deletions
+7
-13
ChannelConsr.java
...main/java/com/pcloud/book/consumer/user/ChannelConsr.java
+1
-5
RiddleRecordBizImpl.java
.../com/pcloud/book/riddle/biz/impl/RiddleRecordBizImpl.java
+6
-7
RightsSettingBizImpl.java
...oud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
+0
-1
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/consumer/user/ChannelConsr.java
View file @
f5896acb
...
...
@@ -165,13 +165,9 @@ public class ChannelConsr {
LOGGER
.
info
(
"根据sceneId获取bookId,<START>.[sceneId]="
+
sceneId
);
try
{
bookId
=
ResponseHandleUtil
.
parseResponse
(
qrcodeSceneService
.
getBookId4SceneId
(
sceneId
),
Long
.
class
);
if
(
null
==
bookId
)
{
throw
new
ChannelBizException
(
ChannelBizException
.
PARAM_IS_NULL
,
"bookId为空"
);
}
return
bookId
;
}
catch
(
Exception
e
)
{
LOGGER
.
error
(
"根据sceneId获取bookId"
+
e
.
getMessage
(),
e
);
throw
new
ChannelBizException
(
ChannelBizException
.
PARAM_IS_NULL
,
"bookId为空"
);
return
null
;
}
}
...
...
pcloud-service-book/src/main/java/com/pcloud/book/riddle/biz/impl/RiddleRecordBizImpl.java
View file @
f5896acb
...
...
@@ -116,28 +116,27 @@ public class RiddleRecordBizImpl implements RiddleRecordBiz {
if
(!
groupQrcode
.
getRiddleOpen
())
{
ReadingActivityDTO
readingActivityDTO
=
readingActivityBiz
.
getReadingActivityByWxGroupId
(
wxGroupId
);
if
(
null
==
readingActivityDTO
){
logger
.
info
(
"微信群="
+
wxGroupId
+
"共读活动
="
+
readingActivityDTO
.
getTheme
()+
"
没有开启猜谜语游戏权限"
);
logger
.
info
(
"微信群="
+
wxGroupId
+
"共读活动没有开启猜谜语游戏权限"
);
return
;
}
else
if
(
null
!=
readingActivityDTO
&&
!
readingActivityDTO
.
getRiddleOpen
()){
}
else
if
(
!
readingActivityDTO
.
getRiddleOpen
()){
logger
.
info
(
"微信群="
+
wxGroupId
+
"共读活动="
+
readingActivityDTO
.
getTheme
()+
"没有开启猜谜语游戏权限"
);
return
;
}
}
}
else
{
throw
new
BizException
(
BizException
.
PARAM_IS_NULL
.
getCode
(),
"根据wxGroupId找不到群"
);
}
else
{
return
;
}
//历史记录
RiddleRecord
riddleRecord
=
riddleRecordDao
.
getLastRecordByWxGroupId
(
wxGroupId
,
null
);
//1该群猜谜语没有记录或已结束
if
(
null
==
riddleRecord
||
(
null
!=
riddleRecord
&&
ArrayUtils
.
contains
(
RiddleRecordStatusEnum
.
GAME_END
,
riddleRecord
.
getStatus
())))
{
if
(
null
==
riddleRecord
||
(
ArrayUtils
.
contains
(
RiddleRecordStatusEnum
.
GAME_END
,
riddleRecord
.
getStatus
())))
{
//1.1关键词“猜谜语” ,游戏开启,计时
if
(
textContent
.
equals
(
"猜谜语"
))
{
startGame
(
riddleRecord
,
wxGroupId
,
wxId
,
ip
);
}
}
//2猜谜语进行中
else
if
(
null
!=
riddleRecord
&&
!
RiddleRecordStatusEnum
.
end
.
getCode
().
equals
(
riddleRecord
.
getStatus
()))
{
else
if
(!
RiddleRecordStatusEnum
.
end
.
getCode
().
equals
(
riddleRecord
.
getStatus
()))
{
Integer
finishCount
=
riddleRecord
.
getFinishCount
()
==
null
?
0
:
riddleRecord
.
getFinishCount
();
Long
riddleId
=
riddleRecord
.
getRiddleId
();
Riddle
riddle
=
riddleDao
.
getById
(
riddleId
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
View file @
f5896acb
...
...
@@ -2008,7 +2008,6 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
}
}
if
(
null
==
rightsSettingDto
)
{
log
.
error
(
"该书没有匹配的分类权益,bookId="
+
bookId
);
return
new
RightsSettingDto
();
}
return
rightsSettingDto
;
...
...
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