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";
|
|
}
|