Parcourir la source

/。 mall

release_toaliyun_real
xhxu il y a 4 ans
Parent
révision
a668df31c9
1 fichiers modifiés avec 12 ajouts et 12 suppressions
  1. +12
    -12
      mallinkAdmin/src/main/java/com/iformall/controller/sys/WechatLoginController.java

+ 12
- 12
mallinkAdmin/src/main/java/com/iformall/controller/sys/WechatLoginController.java Voir le fichier

@@ -187,12 +187,12 @@ public class WechatLoginController extends BaseController {
log.error(e.getMessage()); log.error(e.getMessage());
} }
} }
// Map map = new HashMap();
// if (mall.getGroupSupport().equals(EnumGroupSupport.SUPPORT.getCode())) {
// List<WxMall> mallList = mallService.getSubByParentTenantId(mall.getTenantId());
// map.put("subMalls", JSON.toJSONString(mallList));
// map.put("group", EnumGroupSupport.SUPPORT.getCode());
// }
Map map = new HashMap();
if (mall.getGroupSupport().equals(EnumGroupSupport.SUPPORT.getCode())) {
List<WxMall> mallList = mallService.getSubByParentTenantId(mall.getTenantId());
map.put("subMalls", JSON.toJSONString(mallList));
map.put("group", EnumGroupSupport.SUPPORT.getCode());
}
try { try {
String cookieName = URLEncoder.encode(info.getUsername(), "utf-8"); String cookieName = URLEncoder.encode(info.getUsername(), "utf-8");
Cookie unameCookie = new Cookie("uname", cookieName); Cookie unameCookie = new Cookie("uname", cookieName);
@@ -358,12 +358,12 @@ public class WechatLoginController extends BaseController {
log.error(e.getMessage()); log.error(e.getMessage());
} }
} }
Map map = new HashMap();
if (mall.getGroupSupport().equals(EnumGroupSupport.SUPPORT.getCode())) {
List<WxMall> mallList = mallService.getSubByParentTenantId(mall.getTenantId());
map.put("subMalls", JSON.toJSONString(mallList));
map.put("group", EnumGroupSupport.SUPPORT.getCode());
}
// Map map = new HashMap();
// if (mall.getGroupSupport().equals(EnumGroupSupport.SUPPORT.getCode())) {
// List<WxMall> mallList = mallService.getSubByParentTenantId(mall.getTenantId());
// map.put("subMalls", JSON.toJSONString(mallList));
// map.put("group", EnumGroupSupport.SUPPORT.getCode());
// }
// 登录cookie // 登录cookie
String cookieName = URLEncoder.encode(info.getUsername(), "utf-8"); String cookieName = URLEncoder.encode(info.getUsername(), "utf-8");
Cookie unameCookie = new Cookie("uname", cookieName); Cookie unameCookie = new Cookie("uname", cookieName);


Chargement…
Annuler
Enregistrer