Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
services
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tencent
services
Commits
217f0ee9
Commit
217f0ee9
authored
Dec 25, 2018
by
xmy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 1.0.41
修改消息推送
parent
511b5814
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
UPGRADE.md
+2
-0
src/Cmq/Topic.php
+3
-3
No files found.
UPGRADE.md
View file @
217f0ee9
# 1.0.41
-
修改消息推送
# 1.0.40
-
商家退款账本接口增加 order_time字段 ByIds
# 1.0.39
...
...
src/Cmq/Topic.php
View file @
217f0ee9
...
...
@@ -255,13 +255,13 @@ class Topic
$tryTimes
=
0
;
do
{
$
msgId
=
$this
->
publish_message
(
$cryptMessage
,
$vTagList
,
$routingKey
);
$
res
=
$this
->
publish_message
(
$cryptMessage
,
$vTagList
,
$routingKey
);
$tryTimes
++
;
}
while
(
!
$msgId
||
$tryTimes
<
3
);
}
while
(
$res
[
'code'
]
!=
0
&&
$tryTimes
<
3
);
if
(
$tryTimes
>
3
){
App
::
error
(
"[消息队列失败]:
$message
"
);
}
return
$
msgId
;
return
$
res
;
}
}
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