|
|
@ -155,6 +155,18 @@ public class JwtUtils |
|
|
{ |
|
|
{ |
|
|
return getValue(claims, SecurityConstants.DETAILS_PHONE); |
|
|
return getValue(claims, SecurityConstants.DETAILS_PHONE); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 根据令牌获取艺术家手机号 |
|
|
|
|
|
* |
|
|
|
|
|
* @param token 令牌 |
|
|
|
|
|
* @return 艺术家ID |
|
|
|
|
|
*/ |
|
|
|
|
|
public static String getCreatorPhone(String token) |
|
|
|
|
|
{ |
|
|
|
|
|
Claims claims = parseToken(token); |
|
|
|
|
|
return getValue(claims, SecurityConstants.DETAILS_PHONE); |
|
|
|
|
|
} |
|
|
//***************************艺术家信息结束************************************
|
|
|
//***************************艺术家信息结束************************************
|
|
|
//***************************抖音用户信息开始************************************
|
|
|
//***************************抖音用户信息开始************************************
|
|
|
/** |
|
|
/** |
|
|
@ -213,6 +225,18 @@ public class JwtUtils |
|
|
return getValue(claims, SecurityConstants.DETAILS_TIKTOK_OPENID); |
|
|
return getValue(claims, SecurityConstants.DETAILS_TIKTOK_OPENID); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 根据令牌获取抖音用户openid |
|
|
|
|
|
* |
|
|
|
|
|
* @param token 令牌 |
|
|
|
|
|
* @return - |
|
|
|
|
|
*/ |
|
|
|
|
|
public static String getTiktokUserOpenid(String token) |
|
|
|
|
|
{ |
|
|
|
|
|
Claims claims = parseToken(token); |
|
|
|
|
|
return getValue(claims, SecurityConstants.DETAILS_TIKTOK_OPENID); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//***************************抖音用户信息结束************************************
|
|
|
//***************************抖音用户信息结束************************************
|
|
|
|
|
|
|
|
|
//***************************微信用户信息开始************************************
|
|
|
//***************************微信用户信息开始************************************
|
|
|
@ -271,6 +295,18 @@ public class JwtUtils |
|
|
{ |
|
|
{ |
|
|
return getValue(claims, SecurityConstants.DETAILS_WECHAT_OPENID); |
|
|
return getValue(claims, SecurityConstants.DETAILS_WECHAT_OPENID); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 根据令牌获取微信用户openid |
|
|
|
|
|
* |
|
|
|
|
|
* @param token 令牌 |
|
|
|
|
|
* @return - |
|
|
|
|
|
*/ |
|
|
|
|
|
public static String getWechatUserOpenid(String token) |
|
|
|
|
|
{ |
|
|
|
|
|
Claims claims = parseToken(token); |
|
|
|
|
|
return getValue(claims, SecurityConstants.DETAILS_WECHAT_OPENID); |
|
|
|
|
|
} |
|
|
//***************************微信用户信息结束************************************
|
|
|
//***************************微信用户信息结束************************************
|
|
|
|
|
|
|
|
|
//***************************快手用户信息开始************************************
|
|
|
//***************************快手用户信息开始************************************
|
|
|
@ -330,6 +366,18 @@ public class JwtUtils |
|
|
return getValue(claims, SecurityConstants.DETAILS_FH_OPENID); |
|
|
return getValue(claims, SecurityConstants.DETAILS_FH_OPENID); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 根据令牌获取快手用户openId |
|
|
|
|
|
* |
|
|
|
|
|
* @param token 令牌 |
|
|
|
|
|
* @return - |
|
|
|
|
|
*/ |
|
|
|
|
|
public static String getFhUserOpenid(String token) |
|
|
|
|
|
{ |
|
|
|
|
|
Claims claims = parseToken(token); |
|
|
|
|
|
return getValue(claims, SecurityConstants.DETAILS_FH_OPENID); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//***************************快手用户信息结束************************************
|
|
|
//***************************快手用户信息结束************************************
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
|