+13
-1
@@ -80,7 +80,19 @@ public class UserController {
|
||||
} else {
|
||||
weiXinId = CookieUtils.getCookieValue(request,"we_chat_open_id");
|
||||
}
|
||||
|
||||
String cacheWeiXinId = CookieUtils.getCookieValue(request,"login_enterpriseuser_weixinid");
|
||||
try {
|
||||
if(StringUtils.isNotBlank(weiXinId) && StringUtils.isNotBlank(cacheWeiXinId)){
|
||||
System.out.println("cookie weiXinId:"+weiXinId);
|
||||
response.sendRedirect("reqCityChoicePage?type=b&code="+model.getCode());
|
||||
}
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
if(weiXinId == null && StringUtils.isNotBlank(model.getCode())) {//微信公众号渤海银行
|
||||
System.out.println("bh OPEN_ID 随机生成:" + weiXinId);
|
||||
weiXinId = DataConvertUtil.getRandomString2(16);
|
||||
}
|
||||
if(weiXinId != null && !weiXinId.equals("")){
|
||||
@@ -141,7 +153,7 @@ public class UserController {
|
||||
|
||||
} else {
|
||||
try {
|
||||
response.sendRedirect("reqLoginPage");
|
||||
response.sendRedirect("bhydLoginPage?code="+model.getCode());
|
||||
} catch (IOException e) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user