Commit 3f82b40d by 孙亚楠

dg

parent ddd3c4e2
...@@ -9,6 +9,7 @@ class SsmUserCtl extends CtlBase { ...@@ -9,6 +9,7 @@ class SsmUserCtl extends CtlBase {
constructor() { constructor() {
super(); super();
this.ssmuserSve = system.getObject("service.uc.ssmuserSve"); this.ssmuserSve = system.getObject("service.uc.ssmuserSve");
this.redisClient = system.getObject("util.redisClient");
} }
/** /**
...@@ -23,7 +24,7 @@ class SsmUserCtl extends CtlBase { ...@@ -23,7 +24,7 @@ class SsmUserCtl extends CtlBase {
var loginName = this.trim(pobj.loginName); var loginName = this.trim(pobj.loginName);
var password = this.trim(pobj.password); var password = this.trim(pobj.password);
try { try {
var loginUser = await this.userSve.ssmUserlogin({ var loginUser = await this.ssmuserSve.ssmUserlogin({
ucname: loginName, ucname: loginName,
password: password, password: password,
}); });
......
...@@ -197,7 +197,7 @@ class System { ...@@ -197,7 +197,7 @@ class System {
merchant: dev + ":3101" + path, merchant: dev + ":3101" + path,
// 订单服务 // 订单服务
order: local + ":3103" + path, order: dev + ":3103" + path,
// 发票服务 // 发票服务
invoice: dev + ":3105" + path, invoice: dev + ":3105" + path,
......
...@@ -10,7 +10,7 @@ module.exports = function (app) { ...@@ -10,7 +10,7 @@ module.exports = function (app) {
var jsonUser = req.session.user; var jsonUser = req.session.user;
// var jsonUser = null; // var jsonUser = null;
if(!jsonUser) { if(!jsonUser) {
loginsid = req.headers["xggsaasplatformsid"] || ""; loginsid = req.headers["saasa_"] || "";
jsonUser = await redisClient.get(loginsid); jsonUser = await redisClient.get(loginsid);
if(jsonUser) { if(jsonUser) {
jsonUser = JSON.parse(jsonUser); jsonUser = JSON.parse(jsonUser);
...@@ -18,6 +18,7 @@ module.exports = function (app) { ...@@ -18,6 +18,7 @@ module.exports = function (app) {
} }
if (req.url.indexOf("uc/userCtl/login") > 0 || if (req.url.indexOf("uc/userCtl/login") > 0 ||
req.url.indexOf("uc/ssmUserCtl/login") > 0 ||
req.url.indexOf("common/metaCtl/getApiDoc") > 0 || req.url.indexOf("common/metaCtl/getApiDoc") > 0 ||
req.url.indexOf("common/captchaCtl/captcha") > 0 || req.url.indexOf("common/captchaCtl/captcha") > 0 ||
......
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