|
@@ -58,10 +58,11 @@ public class AuthCtrl
|
|
58
|
log.info("wxCode="+wxCode+",openid="+openid);
|
58
|
log.info("wxCode="+wxCode+",openid="+openid);
|
|
59
|
|
59
|
|
|
60
|
// if ("o2P0j59YcTmvpZurZWK2fQHAPXJk".equals(openid)||"o2P0j5wNH9HBD5mDHo9of1-Lyuxo".equals(openid)){
|
60
|
// if ("o2P0j59YcTmvpZurZWK2fQHAPXJk".equals(openid)||"o2P0j5wNH9HBD5mDHo9of1-Lyuxo".equals(openid)){
|
|
61
|
- if ("null".equals(cursn)){
|
|
|
|
62
|
- cursn = "";
|
|
|
|
63
|
- }
|
|
|
|
|
|
61
|
+
|
|
64
|
String url="http://xcwx.jimi.link/user/indexForOld.do?&openid=" + openid+"&sn="+cursn;
|
62
|
String url="http://xcwx.jimi.link/user/indexForOld.do?&openid=" + openid+"&sn="+cursn;
|
|
|
|
63
|
+ if (GzhUtil.isEmpty(cursn)){
|
|
|
|
64
|
+ url="http://xcwx.jimi.link/user/indexForOld.do?&openid=" + openid;
|
|
|
|
65
|
+ }
|
|
65
|
url = URLEncoder.encode(url);
|
66
|
url = URLEncoder.encode(url);
|
|
66
|
log.info("url="+url);
|
67
|
log.info("url="+url);
|
|
67
|
String path = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxb06cf14f96dd7149&redirect_uri=" + url + "&response_type=code&scope=snsapi_base&state=123#wechat_redirect";
|
68
|
String path = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxb06cf14f96dd7149&redirect_uri=" + url + "&response_type=code&scope=snsapi_base&state=123#wechat_redirect";
|