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
c66260a3
Commit
c66260a3
authored
Jul 15, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
88e24c2b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
center-manage/app/base/controller/ctl.base.js
+2
-2
center-manage/app/base/utils/logClient.js
+2
-2
No files found.
center-manage/app/base/controller/ctl.base.js
View file @
c66260a3
...
@@ -94,10 +94,10 @@ class CtlBase {
...
@@ -94,10 +94,10 @@ class CtlBase {
return
system
.
getResultFail
(...
xarg
);
return
system
.
getResultFail
(...
xarg
);
}
}
var
rtn
=
await
this
[
methodname
](
pobj
,
query
,
req
);
var
rtn
=
await
this
[
methodname
](
pobj
,
query
,
req
);
this
.
logClient
.
log
(
pobj
,
req
,
rtn
)
this
.
logClient
.
log
(
pobj
,
req
,
rtn
,
null
,
"center-manger"
)
return
rtn
;
return
rtn
;
}
catch
(
e
)
{
}
catch
(
e
)
{
this
.
logClient
.
log
(
pobj
,
req
,
{}
)
this
.
logClient
.
log
(
pobj
,
req
,
null
,
e
.
stack
,
"center-manger"
)
console
.
log
(
e
.
stack
,
"出现异常,请联系管理员......."
);
console
.
log
(
e
.
stack
,
"出现异常,请联系管理员......."
);
return
system
.
getResultFail
(
-
200
,
"出现异常,请联系管理员"
);
return
system
.
getResultFail
(
-
200
,
"出现异常,请联系管理员"
);
}
}
...
...
center-manage/app/base/utils/logClient.js
View file @
c66260a3
...
@@ -13,11 +13,11 @@ class LogClient {
...
@@ -13,11 +13,11 @@ class LogClient {
var
u
=
uuid
.
replace
(
/
\-
/g
,
""
);
var
u
=
uuid
.
replace
(
/
\-
/g
,
""
);
return
u
;
return
u
;
}
}
async
log
(
pobj
,
req
,
rtn
)
{
async
log
(
pobj
,
req
,
rtn
ok
,
errinfo
,
appname
)
{
rtn
.
requestId
=
this
.
getUUID
()
rtn
.
requestId
=
this
.
getUUID
()
req
.
params
.
param
=
pobj
req
.
params
.
param
=
pobj
//第三个字段应该存公司id
//第三个字段应该存公司id
system
.
execLogs
(
req
.
xctx
.
codetitle
,
req
.
params
,
pobj
.
company_id
,
rtn
,
null
).
then
(
res
=>
{
system
.
execLogs
(
appname
+
"_"
+
req
.
xctx
.
codetitle
,
req
.
params
,
pobj
.
company_id
,
rtnok
,
errinfo
).
then
(
res
=>
{
if
(
res
&&
res
.
status
==
1
)
{
if
(
res
&&
res
.
status
==
1
)
{
console
.
log
(
"log.....success"
)
console
.
log
(
"log.....success"
)
}
else
{
}
else
{
...
...
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