引流配置修改
This commit is contained in:
@@ -85,8 +85,12 @@ public class MyStpLogic {
|
||||
if (!isMain && parentId1 == null) {
|
||||
session.set("headId", headId);
|
||||
}
|
||||
|
||||
// 设置主店id
|
||||
Object mainShopId = session.get("mainShopId");
|
||||
session.set("userId", id).set("isAdmin", isAdmin).set("isManager", loginType.equals(LoginType.MANAGER))
|
||||
.set("loginType", loginType).set("account", account).set("shopId", shopId).set("shopName", shopName);
|
||||
.set("loginType", loginType).set("account", account).set("shopId", shopId).set("shopName", shopName)
|
||||
.set("mainShopId", mainShopId);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -108,10 +112,10 @@ public class MyStpLogic {
|
||||
if (shopId != null) {
|
||||
session.set("shopId", shopId);
|
||||
}
|
||||
if (headShopId != null) {
|
||||
if (!isMainShop) {
|
||||
session.set("headShopId", headShopId);
|
||||
session.set("mainShopId", headShopId);
|
||||
}
|
||||
session.set("mainShopId", headShopId);
|
||||
if (shopName != null) {
|
||||
session.set("shopName", shopName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user