Commit 926779fb by 庄冰

xRealIp

parent 956a9071
......@@ -30,7 +30,7 @@ class Template extends APIBase {
async opActionProcess(pobj, action_type, req) {
var opResult = null;
var self = this;
pobj.clientIp = req.clientIp;
pobj.clientIp = req.xRealIp;
pobj.xctx = req.xctx;
switch (action_type) {
case "editTemplateContent"://修改模板内容
......
......@@ -61,6 +61,7 @@ module.exports = function (app) {
classPath=gname+"."+classPath;
var tClientIp = System.get_client_ip(req);
req.clientIp = tClientIp;
req.xRealIp = req.headers["x-real-ip"] || "";
req.uagent= req.headers["user-agent"];
params.push(gname);
params.push(methodName);
......
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