Commit cf189b85 by 宋毅

tj

parent 85bcc3ae
...@@ -14,7 +14,9 @@ class tmqueryCtl extends CtlBase { ...@@ -14,7 +14,9 @@ class tmqueryCtl extends CtlBase {
async doPost(pobj, obj, req) { async doPost(pobj, obj, req) {
console.log(req.session.userPinInfo, "req.session.userPinInfo.......................######################################################"); console.log(req.session.userPinInfo, "req.session.userPinInfo.......................######################################################");
console.log(obj, "req.session.userPinId..........objobjobj.............######################################################"); console.log(req.body, "r.........pobj.............######################################################");
console.log(req.query, "req.session.userPinId..........objobjobj.............######################################################");
var rc = system.getObject("util.execClient"); var rc = system.getObject("util.execClient");
try { try {
......
...@@ -73,29 +73,6 @@ module.exports = function (app) { ...@@ -73,29 +73,6 @@ module.exports = function (app) {
} }
}); });
app.get('/jdtm/:gname/:qname/:method', function (req, res) {
try {
var classPath = req.params["qname"];
var methodName = req.params["method"];
var gname = req.params["gname"];
classPath = gname + "." + classPath;
var params = [];
params.push(methodName);
params.push(req.body);
params.push(req.query);
params.push(req);
var p = null;
var invokeObj = System.getObject("web." + classPath);
if (invokeObj["doexec"]) {
p = invokeObj["doexec"].apply(invokeObj, params);
}
p.then(r => {
res.end(JSON.stringify(r));
});
} catch (error) {
console.log(error.stack, "get/web/:gname/:qname/:method,error.............");
}
});
app.get('/web/:gname/:qname/:method', function (req, res) { app.get('/web/:gname/:qname/:method', function (req, res) {
try { try {
var classPath = req.params["qname"]; var classPath = req.params["qname"];
......
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