Commit 751354e6 by 宋毅

tj

parent 247a75a9
......@@ -91,7 +91,7 @@ module.exports = function (app) {
classPath = gname + "." + classPath;
var tClientIp = system.get_client_ip(req);
req.clientIp = tClientIp;
req.clientIp = tClientIp;req
req.uagent = req.headers["user-agent"];
req.classname = classPath;
......@@ -104,7 +104,7 @@ module.exports = function (app) {
var p = null;
var invokeObj = system.getObject("api." + classPath);
if (invokeObj["doexecMethod"]) {
p = invokeObj["doexecMethod"].apply(invokeObj, params);
p = invokeObj["doexecMethod"].apply(invokeObj, params);req
}
p.then(r => {
res.end(JSON.stringify(r));
......
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