up:注释

develop
PL 2 weeks ago
parent 6f2c55ce26
commit 0a61041432

@ -341,25 +341,25 @@ public class WechatUtilService {
// }
/**
* description 1.code
* param [appid, redirectUrl]
* return java.lang.String
* authorlgb
* createTime 2021/8/27 17:30
**/
public String getUserUathUrl(String redirectUrl) throws UnsupportedEncodingException {
StringBuffer getcodeUrl = new StringBuffer()
.append("https://open.weixin.qq.com/connect/oauth2/authorize")
.append("?appid=" + APP_ID)
.append("&redirect_uri=" + com.sun.deploy.net.URLEncoder.encode(redirectUrl, "utf-8"))
.append("&response_type=code")
.append("&scope=snsapi_userinfo")
.append("&state=" + System.currentTimeMillis())
.append("#wechat_redirect");
return getcodeUrl.toString();
}
// /**
// * description 1.获取用户的临时code
// * param [appid, redirectUrl]
// * return java.lang.String
// * authorlgb
// * createTime 2021/8/27 17:30
// **/
// public String getUserUathUrl(String redirectUrl) throws UnsupportedEncodingException {
// StringBuffer getcodeUrl = new StringBuffer()
// .append("https://open.weixin.qq.com/connect/oauth2/authorize")
// .append("?appid=" + APP_ID)
// .append("&redirect_uri=" + com.sun.deploy.net.URLEncoder.encode(redirectUrl, "utf-8"))
// .append("&response_type=code")
// .append("&scope=snsapi_userinfo")
// .append("&state=" + System.currentTimeMillis())
// .append("#wechat_redirect");
//
// return getcodeUrl.toString();
// }
/**
* description 3.openid

Loading…
Cancel
Save