Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
蒋勇
zhichan
Commits
5b9aadfd
Commit
5b9aadfd
authored
Jun 22, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
54149771
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
1 deletions
+8
-1
brg-queue-center/app/base/db/consumer.base.js
+2
-1
brg-queue-center/app/base/db/impl/opLogs/pushFailureLogDao.js
+2
-0
brg-queue-center/app/base/db/impl/opLogs/pushSuccessLogDao.js
+2
-0
brg-queue-center/app/base/db/models/opLogs/pushFailureLog.js
+1
-0
brg-queue-center/app/base/db/models/opLogs/pushSuccessLog.js
+1
-0
No files found.
brg-queue-center/app/base/db/consumer.base.js
View file @
5b9aadfd
...
...
@@ -50,6 +50,8 @@ class ConsumerBase {
execResult
=
await
this
.
subDoConsumer
(
queuedName
,
actionBody
);
if
(
notifyQueuedName
!=
queuedName
)
{
actionBody
.
resultInfo
=
execResult
;
}
else
{
actionBody
.
pushAgainResultInfo
=
execResult
;
}
if
(
execResult
.
status
===
1
)
{
if
(
notifyQueuedName
!=
queuedName
)
{
...
...
@@ -76,7 +78,6 @@ class ConsumerBase {
delete
actionBody
[
"pushAgainResultInfo"
];
}
execResult
=
await
this
.
subDoConsumer
(
queuedName
,
actionBody
);
actionBody
.
pushAgainResultInfo
=
execResult
;
}
catch
(
error
)
{
var
stackStr
=
error
.
stack
?
error
.
stack
:
JSON
.
stringify
(
error
);
this
.
errorLogDao
.
addOpErrorLogs
(
"队列执行execSubDoConsumer存在异常"
,
actionBody
,
execResult
,
stackStr
,
3
);
...
...
brg-queue-center/app/base/db/impl/opLogs/pushFailureLogDao.js
View file @
5b9aadfd
const
system
=
require
(
"../../../system"
);
const
Dao
=
require
(
"../../dao.base"
);
const
settings
=
require
(
"../../../../config/settings"
);
class
PushFailureLogDao
extends
Dao
{
constructor
()
{
super
(
Dao
.
getModelName
(
PushFailureLogDao
));
...
...
@@ -12,6 +13,7 @@ class PushFailureLogDao extends Dao {
*/
async
addOpFailureLogs
(
opTitle
,
actionBody
,
execResult
)
{
var
params
=
{
queued_name
:
settings
.
queuedName
,
identify_code
:
actionBody
.
identifyCode
,
op_title
:
opTitle
,
push_content
:
actionBody
,
...
...
brg-queue-center/app/base/db/impl/opLogs/pushSuccessLogDao.js
View file @
5b9aadfd
const
system
=
require
(
"../../../system"
);
const
Dao
=
require
(
"../../dao.base"
);
const
settings
=
require
(
"../../../../config/settings"
);
class
PushSuccessLogDao
extends
Dao
{
constructor
()
{
super
(
Dao
.
getModelName
(
PushSuccessLogDao
));
...
...
@@ -13,6 +14,7 @@ class PushSuccessLogDao extends Dao {
*/
async
addOpSuccessLogs
(
opTitle
,
actionBody
,
execResult
)
{
var
params
=
{
queued_name
:
settings
.
queuedName
,
identify_code
:
actionBody
.
identifyCode
,
op_title
:
opTitle
,
push_content
:
actionBody
,
...
...
brg-queue-center/app/base/db/models/opLogs/pushFailureLog.js
View file @
5b9aadfd
const
system
=
require
(
"../../../system"
);
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"pushFailureLog"
,
{
queued_name
:
DataTypes
.
STRING
(
512
),
//队列名称
identify_code
:
DataTypes
.
STRING
(
100
),
//标识code
op_title
:
DataTypes
.
STRING
(
100
),
// 操作标题
push_content
:
DataTypes
.
JSON
,
//推送的内容
...
...
brg-queue-center/app/base/db/models/opLogs/pushSuccessLog.js
View file @
5b9aadfd
const
system
=
require
(
"../../../system"
);
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"pushSuccessLog"
,
{
queued_name
:
DataTypes
.
STRING
(
512
),
//队列名称
identify_code
:
DataTypes
.
STRING
(
100
),
//标识code
op_title
:
DataTypes
.
STRING
(
100
),
// 操作标题
push_content
:
DataTypes
.
JSON
,
//推送的内容
...
...
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