Commit 37d42eed by 宋毅

tj

parent aee509ea
...@@ -6,7 +6,7 @@ var moment = require("moment"); ...@@ -6,7 +6,7 @@ var moment = require("moment");
class OplogCtl extends CtlBase { class OplogCtl extends CtlBase {
constructor() { constructor() {
super("common", CtlBase.getServiceName(OplogCtl)); super("common", CtlBase.getServiceName(OplogCtl));
//this.appS=system.getObject("service.appSve"); this.oplogSve=system.getObject("service.common.oplogSve");
} }
async initNewInstance(qobj) { async initNewInstance(qobj) {
...@@ -17,23 +17,23 @@ class OplogCtl extends CtlBase { ...@@ -17,23 +17,23 @@ class OplogCtl extends CtlBase {
} }
async debug(obj) { async debug(obj) {
obj.logLevel = "debug"; obj.logLevel = "debug";
return this.create(obj); return this.oplogSve.create(obj);
} }
async info(obj) { async info(obj) {
obj.logLevel = "info"; obj.logLevel = "info";
return this.create(obj); return this.oplogSve.create(obj);
} }
async warn(obj) { async warn(obj) {
obj.logLevel = "warn"; obj.logLevel = "warn";
return this.create(obj); return this.oplogSve.create(obj);
} }
async error(obj) { async error(obj) {
obj.logLevel = "error"; obj.logLevel = "error";
return this.create(obj); return this.oplogSve.create(obj);
} }
async fatal(obj) { async fatal(obj) {
obj.logLevel = "fatal"; obj.logLevel = "fatal";
return this.create(obj); return this.oplogSve.create(obj);
} }
/* /*
......
...@@ -4,7 +4,7 @@ const exec = util.promisify(require('child_process').exec); ...@@ -4,7 +4,7 @@ const exec = util.promisify(require('child_process').exec);
const uuidv4 = require('uuid/v4'); const uuidv4 = require('uuid/v4');
class ExecClient { class ExecClient {
constructor() { 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.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}"; this.cmdPostTK = "curl -k -H 'Content-type: application/json' -H 'token:{tk}' -H 'request-id:{requestId}' -d '{data}' {url}";
} }
......
...@@ -2,7 +2,19 @@ ...@@ -2,7 +2,19 @@
var System = require("../../base/system"); var System = require("../../base/system");
var metaCtl = System.getObject("web.common.metaCtl"); var metaCtl = System.getObject("web.common.metaCtl");
var tmqueryCtl = System.getObject("web.trademark.tmqueryCtl"); var tmqueryCtl = System.getObject("web.trademark.tmqueryCtl");
var oplogCtl = System.getObject("web.common.oplogCtl");
module.exports = function (app) { 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) { app.get("/1688/selfRegister", async function (req, res) {
var params = { var params = {
actionProcess: "1688", actionProcess: "1688",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment