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