up:注释

develop
PL 2 weeks ago
parent 6f2c55ce26
commit 0a61041432

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

Loading…
Cancel
Save