Commit 3f82b40d by 孙亚楠

dg

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