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
7201905b
Commit
7201905b
authored
Oct 14, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update log
parent
9f0b91a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
center-tmtransaction/app/base/api/api.base.js
+4
-4
center-tmtransaction/app/config/settings.js
+2
-2
No files found.
center-tmtransaction/app/base/api/api.base.js
View file @
7201905b
...
...
@@ -76,7 +76,7 @@ class APIBase {
if
(
!
result
)
{
result
=
system
.
getResult
(
null
,
"请求的方法返回值为空"
);
}
this
.
execClient
.
execLogs
(
"reqPath:"
+
req
.
path
+
"执行
结果"
,
pobj
,
"brg-user-center-doexecOverviewMethod
"
,
result
,
null
);
this
.
execClient
.
execLogs
(
"reqPath:"
+
req
.
path
+
"执行
doexecOverviewMethod结果"
,
pobj
,
"center-tmtransaction
"
,
result
,
null
);
//保存缓存
await
this
.
redisClient
.
setWithEx
(
shaStr
,
JSON
.
stringify
(
result
),
5
);
return
result
;
...
...
@@ -84,7 +84,7 @@ class APIBase {
var
stackStr
=
error
.
stack
?
error
.
stack
:
JSON
.
stringify
(
error
);
console
.
log
(
stackStr
,
"api调用出现异常,请联系管理员.........."
)
var
rtnerror
=
system
.
getResultFail
(
-
200
,
"系统出现异常"
);
this
.
execClient
.
execLogs
(
"reqPath:"
+
req
.
path
+
"执行
异常"
,
pobj
,
"brg-user-center-doexecOverviewMethod
"
,
rtnerror
,
stackStr
);
this
.
execClient
.
execLogs
(
"reqPath:"
+
req
.
path
+
"执行
doexecOverviewMethod异常"
,
pobj
,
"center-tm-transaction
"
,
rtnerror
,
stackStr
);
if
(
pobj
.
Action
&&
action
)
{
return
{
"Response"
:
{
...
...
@@ -132,7 +132,7 @@ class APIBase {
}
result
.
requestId
=
pobj
.
RequestId
?
pobj
.
RequestId
:
pobj
.
requestId
||
uuid
.
v1
();
var
tmpResult
=
reqParams
.
actionType
&&
reqParams
.
actionType
.
indexOf
(
"List"
)
<
0
?
result
:
{
status
:
result
.
status
,
message
:
result
.
message
,
requestId
:
result
.
requestId
};
this
.
execClient
.
execLogs
(
"reqPath:"
+
req
.
path
+
"执行
结果"
,
reqParams
,
"brg-user-center-doexecMethod
"
,
tmpResult
,
null
);
this
.
execClient
.
execLogs
(
"reqPath:"
+
req
.
path
+
"执行
doexecMethod结果"
,
reqParams
,
"center-tm-transaction
"
,
tmpResult
,
null
);
if
(
pobj
.
Action
&&
action
)
{
result
=
await
this
.
handleTxResult
(
result
);
delete
req
.
body
[
"Action"
];
...
...
@@ -146,7 +146,7 @@ class APIBase {
console
.
log
(
stackStr
,
"api调用出现异常,请联系管理员.........."
)
var
rtnerror
=
system
.
getResultFail
(
-
200
,
"系统出现异常"
);
rtnerror
.
requestId
=
pobj
.
RequestId
?
pobj
.
RequestId
:
pobj
.
requestId
||
uuid
.
v1
();
this
.
execClient
.
execLogs
(
"reqPath:"
+
req
.
path
+
"执行
异常"
,
reqParams
,
"brg-user-center-doexecMethod
"
,
rtnerror
,
stackStr
);
this
.
execClient
.
execLogs
(
"reqPath:"
+
req
.
path
+
"执行
doexecMethod异常"
,
reqParams
,
"center-tm-transaction
"
,
rtnerror
,
stackStr
);
if
(
pobj
.
Action
&&
action
)
{
return
{
"Response"
:
{
...
...
center-tmtransaction/app/config/settings.js
View file @
7201905b
...
...
@@ -18,9 +18,9 @@ var settings = {
port
:
process
.
env
.
NODE_PORT
||
4006
,
opLogUrl
:
function
()
{
if
(
this
.
env
==
"dev"
||
this
.
env
==
"test"
)
{
return
"http://43.247.184.94:7200/center
_channel
_log/_doc?pretty"
;
return
"http://43.247.184.94:7200/center
-tm-transaction
_log/_doc?pretty"
;
}
else
{
return
"http://43.247.184.94:7200/center
_channel
_log/_doc?pretty"
;
return
"http://43.247.184.94:7200/center
-tm-transaction
_log/_doc?pretty"
;
}
},
opPushUrl
:
function
()
{
...
...
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