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
37d42eed
Commit
37d42eed
authored
Dec 06, 2019
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
aee509ea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
7 deletions
+19
-7
igirl-channel-web/app/base/controller/impl/common/oplogCtl.js
+6
-6
igirl-channel-web/app/base/utils/execClient.js
+1
-1
igirl-channel-web/app/config/routes/web.js
+12
-0
No files found.
igirl-channel-web/app/base/controller/impl/common/oplogCtl.js
View file @
37d42eed
...
...
@@ -6,7 +6,7 @@ var moment = require("moment");
class
OplogCtl
extends
CtlBase
{
constructor
()
{
super
(
"common"
,
CtlBase
.
getServiceName
(
OplogCtl
));
//this.appS=system.getObject("service.app
Sve");
this
.
oplogSve
=
system
.
getObject
(
"service.common.oplog
Sve"
);
}
async
initNewInstance
(
qobj
)
{
...
...
@@ -17,23 +17,23 @@ class OplogCtl extends CtlBase {
}
async
debug
(
obj
)
{
obj
.
logLevel
=
"debug"
;
return
this
.
create
(
obj
);
return
this
.
oplogSve
.
create
(
obj
);
}
async
info
(
obj
)
{
obj
.
logLevel
=
"info"
;
return
this
.
create
(
obj
);
return
this
.
oplogSve
.
create
(
obj
);
}
async
warn
(
obj
)
{
obj
.
logLevel
=
"warn"
;
return
this
.
create
(
obj
);
return
this
.
oplogSve
.
create
(
obj
);
}
async
error
(
obj
)
{
obj
.
logLevel
=
"error"
;
return
this
.
create
(
obj
);
return
this
.
oplogSve
.
create
(
obj
);
}
async
fatal
(
obj
)
{
obj
.
logLevel
=
"fatal"
;
return
this
.
create
(
obj
);
return
this
.
oplogSve
.
create
(
obj
);
}
/*
...
...
igirl-channel-web/app/base/utils/execClient.js
View file @
37d42eed
...
...
@@ -4,7 +4,7 @@ const exec = util.promisify(require('child_process').exec);
const
uuidv4
=
require
(
'uuid/v4'
);
class
ExecClient
{
constructor
()
{
this
.
cmdPostPattern
=
"curl -k -H 'Content-type: application/json' -d '{data}' {url}"
;
this
.
cmdPostPattern
=
"curl -
-user admines:adminGSBes. -
k -H 'Content-type: application/json' -d '{data}' {url}"
;
this
.
cmdGetPattern
=
"curl -G -X GET '{url}'"
;
this
.
cmdPostTK
=
"curl -k -H 'Content-type: application/json' -H 'token:{tk}' -H 'request-id:{requestId}' -d '{data}' {url}"
;
}
...
...
igirl-channel-web/app/config/routes/web.js
View file @
37d42eed
...
...
@@ -2,7 +2,19 @@
var
System
=
require
(
"../../base/system"
);
var
metaCtl
=
System
.
getObject
(
"web.common.metaCtl"
);
var
tmqueryCtl
=
System
.
getObject
(
"web.trademark.tmqueryCtl"
);
var
oplogCtl
=
System
.
getObject
(
"web.common.oplogCtl"
);
module
.
exports
=
function
(
app
)
{
app
.
get
(
"/jd/orderNotify"
,
async
function
(
req
,
res
)
{
oplogCtl
.
info
({
optitle
:
"########################################################.................orderNotify"
,
op
:
"/jd/orderNotify"
,
content
:
"req.query="
+
JSON
.
stringify
(
req
.
query
)
+
",req.body="
+
JSON
.
stringify
(
req
.
body
),
clientIp
:
""
});
console
.
log
(
req
.
query
,
"req.query.....########################################################.................orderNotify"
);
console
.
log
(
req
.
body
,
"req.body......########################################################................orderNotify"
);
});
app
.
get
(
"/1688/selfRegister"
,
async
function
(
req
,
res
)
{
var
params
=
{
actionProcess
:
"1688"
,
...
...
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