|
@@ -25,7 +25,7 @@ public class WebBridgeController extends Controller {
|
|
|
|
|
|
private void process(String toUrl) {
|
|
|
try {
|
|
|
- Object sessionObj = this.getRequest().getSession().getAttribute("pwpSessionObj");
|
|
|
+ Object sessionObj = this.getRequest().getSession().getAttribute("pwpSessionObjtest1");
|
|
|
WeixinService wService = ServiceFactory.getService(WeixinService.class);
|
|
|
if (sessionObj == null) {
|
|
|
String code = this.getPara("code");
|
|
@@ -44,7 +44,7 @@ public class WebBridgeController extends Controller {
|
|
|
if (userWechats != null && userWechats.getWxIcon().isEmpty()) {
|
|
|
wService.getWebWeixinUserInfo(snsAccessToken.getAccessToken(), snsAccessToken.getOpenid());
|
|
|
}
|
|
|
- this.getRequest().getSession().setAttribute("pwpSessionObj", userWechats);
|
|
|
+ this.getRequest().getSession().setAttribute("pwpSessionObjtest1", userWechats);
|
|
|
String uidStr = toUrl.contains("?") ? "&openid=" : "?openid=";
|
|
|
this.redirect(toUrl + uidStr + snsAccessToken.getOpenid());
|
|
|
} else {
|
|
@@ -62,7 +62,7 @@ public class WebBridgeController extends Controller {
|
|
|
|
|
|
}
|
|
|
//
|
|
|
- this.getRequest().getSession().setAttribute("pwpSessionObj", users2);
|
|
|
+ this.getRequest().getSession().setAttribute("pwpSessionObjtest1", users2);
|
|
|
//
|
|
|
this.redirect(toUrl + uidStr + userWechats.getWxOpenid());
|
|
|
|