hjl
2024-05-21 ffb13ddfb98ddc0f360caa313a93b5dc8d6483f5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.ruoyi.common.core.constant;
 
/**
 * Token的Key常量
 *
 * @author ruoyi
 */
public class TokenConstants {
    /**
     * 令牌自定义标识
     */
    public static final String AUTHENTICATION = "Authorization";
 
    /**
     * 令牌前缀
     */
    public static final String PREFIX = "Bearer ";
 
    /**
     * 令牌秘钥
     */
    public final static String SECRET = "abcdefghijklmnopqrstuvwxyz";
 
    /**
     * 微信分享token地址
     */
    public final static String VX_TOKEN_API_PREFIX = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s";
 
    /**
     * 微信分享获取票据地址
     */
    public final static String VX_TICKET_API_PREFIX = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=%s&type=jsapi";
 
}