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
44f3b51a
Commit
44f3b51a
authored
Jul 16, 2020
by
王召彬
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' of
http://git.dev.2b3.cn/tencent/services
into test
parents
894d9ec3
a28f4403
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/Cmq/Topic.php
+6
-6
No files found.
src/Cmq/Topic.php
View file @
44f3b51a
...
@@ -261,9 +261,9 @@ class Topic
...
@@ -261,9 +261,9 @@ class Topic
do
{
do
{
try
{
try
{
$res
=
$this
->
publish_message
(
$cryptMessage
,
$vTagList
,
$routingKey
);
$res
=
$this
->
publish_message
(
$cryptMessage
,
$vTagList
,
$routingKey
);
if
(
$res
[
'code'
]
==
0
)
break
;
if
(
$res
[
'code'
]
==
0
)
break
;
}
catch
(
\Throwable
$e
)
{
}
catch
(
\Throwable
$e
)
{
App
::
error
(
"[消息队列异常]:"
.
var_export
(
$e
,
true
));
App
::
error
(
"[消息队列异常]:"
.
$e
->
getFile
()
.
$e
->
getMessage
(),
$e
->
getLine
(
));
}
}
$tryTimes
++
;
$tryTimes
++
;
}
while
(
$tryTimes
<
3
);
}
while
(
$tryTimes
<
3
);
...
@@ -277,7 +277,7 @@ class Topic
...
@@ -277,7 +277,7 @@ class Topic
return
$res
;
return
$res
;
}
}
protected
function
TopicLog
(
$message
,
$cryptMessage
,
$tagName
,
$response
,
$status
=
0
)
protected
function
TopicLog
(
$message
,
$cryptMessage
,
$tagName
,
$response
,
$status
=
0
)
{
{
$data
=
[
$data
=
[
'tagName'
=>
$tagName
,
'tagName'
=>
$tagName
,
...
@@ -291,8 +291,8 @@ class Topic
...
@@ -291,8 +291,8 @@ class Topic
try
{
try
{
$db
=
CfgCenter
::
dbConnect
();
$db
=
CfgCenter
::
dbConnect
();
$db
->
insert
(
'topic_log'
,
$data
);
$db
->
insert
(
'topic_log'
,
$data
);
}
catch
(
\Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
App
::
error
(
"消息主题日志记录失败:"
.
$e
->
getMessage
()
.
'---'
.
json_encode
(
$data
));
App
::
error
(
"消息主题日志记录失败:"
.
$e
->
getMessage
()
.
'---'
.
json_encode
(
$data
));
}
}
}
}
}
}
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