刘韬 il y a 6 ans
Parent
commit
e331d62eee

+ 3 - 3
PacsOnline_Wechat_Patient/src/main/java/com/zskk/controller/WebBridgeController.java

@@ -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());