sgj
3 天以前 3a6eaca0a2374a17a10a0d5f15541dcb1697f0ae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.fzzy.appwx.constant;
 
public class WeChatConst {
 
    /**
     * 微信公众号登录
     */
    public static final String LOGIN_TYPE_WECHAT = "WECHAT";
    // 用户授权
    public static final String USER_AUTH_UPR =
            "https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect";
    /**
     * 通过code换取用户信息
     */
    public static final String OAUTH2_CODE_ACCESS_TOKEN_URL =
            "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
}