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
c2b3c2f0
Commit
c2b3c2f0
authored
Jul 11, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
da904660
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
center-manage/app/base/system.js
+7
-2
No files found.
center-manage/app/base/system.js
View file @
c2b3c2f0
...
@@ -265,7 +265,11 @@ class System {
...
@@ -265,7 +265,11 @@ class System {
* @param {*} errorInfo 错误信息
* @param {*} errorInfo 错误信息
*/
*/
static
execLogs
(
opTitle
,
params
,
identifyCode
,
resultInfo
,
errorInfo
)
{
static
execLogs
(
opTitle
,
params
,
identifyCode
,
resultInfo
,
errorInfo
)
{
var
reqUrl
=
settings
.
logUrl
();
var
reqUrl
=
settings
.
logUrl
();
let
isLogData
=
true
if
(
params
.
method
&&
(
params
.
method
.
indexOf
(
"find"
)
>=
0
||
params
.
method
.
indexOf
(
"get"
)
>=
0
)){
isLogData
=
false
}
var
param
=
{
var
param
=
{
actionType
:
"produceLogsData"
,
// Y 功能名称
actionType
:
"produceLogsData"
,
// Y 功能名称
actionBody
:
{
actionBody
:
{
...
@@ -273,11 +277,12 @@ class System {
...
@@ -273,11 +277,12 @@ class System {
identifyCode
:
identifyCode
||
"brg-center-manage"
,
// Y 操作的业务标识
identifyCode
:
identifyCode
||
"brg-center-manage"
,
// Y 操作的业务标识
indexName
:
"brg-user-center"
,
// Y es索引值,同一个项目用一个值
indexName
:
"brg-user-center"
,
// Y es索引值,同一个项目用一个值
messageBody
:
params
,
//日志的描述信息
messageBody
:
params
,
//日志的描述信息
resultInfo
:
resultInfo
,
//返回信息
resultInfo
:
isLogData
?
resultInfo
:{
status
:
resultInfo
.
status
}
,
//返回信息
errorInfo
:
errorInfo
,
//错误信息
errorInfo
:
errorInfo
,
//错误信息
requestId
:
resultInfo
.
requestId
||
""
requestId
:
resultInfo
.
requestId
||
""
}
}
};
};
console
.
log
(
param
)
let
P
=
new
Promise
((
resv
,
rej
)
=>
{
let
P
=
new
Promise
((
resv
,
rej
)
=>
{
this
.
postJsonTypeReq
(
reqUrl
,
param
).
then
(
res
=>
{
this
.
postJsonTypeReq
(
reqUrl
,
param
).
then
(
res
=>
{
if
(
res
.
statusCode
==
200
){
if
(
res
.
statusCode
==
200
){
...
...
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