Commit 733402f8 by 303514581@qq.com

2019/4/10 wap端回调接口参数调整

parent dd7fc0e4
......@@ -34,6 +34,8 @@ public class WechatConfig {
private String wapCodeUrl;
// 微信公众号授权appid
private String wapAppid;
// 微信公众号授权appSecret
private String wapSecret;
// 微信公众号成功授权后的回调地址,域名必须与审核时填写的授权域名一致
private String wapRedirectUri;
// 微信公众号应用授权作用域
......@@ -41,6 +43,14 @@ public class WechatConfig {
// #wechat_redirect无论直接打开还是做页面302重定向时候,必须带此参数
private String wapWR;
public String getWapSecret() {
return wapSecret;
}
public void setWapSecret(String wapSecret) {
this.wapSecret = wapSecret;
}
public String getWapCodeUrl() {
return wapCodeUrl;
}
......
......@@ -51,7 +51,7 @@ public class WapWechatLoginController {
// 获取token的地址
String url = null;
try {
url = getUrl.getTokenUrl(config.getGetTokenUrl(), config.getAppid(), config.getSecret(), code,
url = getUrl.getTokenUrl(config.getGetTokenUrl(), config.getWapAppid(), config.getWapSecret(), code,
config.getGrantType());
String resultToken = "";
// 根据地址获取请求
......
......@@ -21,6 +21,8 @@ wechat.userInfoUrl=https://api.weixin.qq.com/sns/userinfo
wechat.wapCodeUrl=https://open.weixin.qq.com/connect/oauth2/authorize
#微信公众号授权appid
wechat.wapAppid=wxd1f40dde7e15845f
#微信公众号授权appid
wechat.wapSecret=65e1fda117ad20788adbce6161cb3a6f
#微信公众号成功授权后的回调地址,域名必须与审核时填写的授权域名一致
wechat.wapRedirectUri =http://login.zhiweidata.com/wapwechat/recall
#微信公众号应用授权作用域,snsapi_base (不弹出授权页面,直接跳转,只能获取用户openid),snsapi_userinfo (弹出授权页面,可通过openid拿到昵称、性别、所在地。并且, 即使在未关注的情况下,只要用户授权,也能获取其信息 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment