Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
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
YZG
yzg-util
Commits
11f253af
Commit
11f253af
authored
May 20, 2020
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设置打包时可以通过GIT查看源码
parent
3fe363e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
MqServiceImpl.java
...n/java/com/yanzuoguang/mq/service/impl/MqServiceImpl.java
+4
-6
No files found.
yzg-util-mq/src/main/java/com/yanzuoguang/mq/service/impl/MqServiceImpl.java
View file @
11f253af
...
...
@@ -302,8 +302,11 @@ public class MqServiceImpl implements MqService {
@ApiOperation
(
value
=
"发送给指定服务器消息"
)
@Override
public
String
sendServerMessage
(
ServerMessageReqVo
req
)
{
// 发送消息,等待下次重新发送
req
.
addPos
();
if
(!
req
.
isNext
())
{
throw
new
CodeException
(
"达到最大次数,不会继续发送"
);
Log
.
error
(
MqServiceImpl
.
class
,
"达到最大次数,不会继续发送"
);
return
StringHelper
.
EMPTY
;
}
String
queueName
=
req
.
getQueueName
();
...
...
@@ -333,11 +336,6 @@ public class MqServiceImpl implements MqService {
Log
.
error
(
MqServiceImpl
.
class
,
ex
);
}
// 发送消息,等待下次重新发送
req
.
addPos
();
if
(!
req
.
isNext
())
{
throw
new
CodeException
(
"达到最大次数,不会继续发送"
);
}
if
(
sendQueueName
.
isEmpty
())
{
String
json
=
JsonHelper
.
serialize
(
req
);
return
this
.
message
(
new
MessageVo
(
req
.
getQueueName
(),
req
.
getQueueName
(),
json
,
req
.
getNextDelayTime
()));
...
...
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