web socket

支付
会员
This commit is contained in:
2024-05-30 09:21:35 +08:00
parent a59377e20d
commit fc962e62b7
15 changed files with 308 additions and 207 deletions

View File

@@ -29,10 +29,6 @@ public class TokenUtil {
*/
private static final String TOKEN_SECRET = "BBDFSDFHFGHSGSRTRESDFSDFS";
private JwtBuilder jwtBuilder;
public static final String AUTHORITIES_KEY = "user";
/**
* 初始化生成token的参数
* @param userId
@@ -45,17 +41,12 @@ public class TokenUtil {
if(ObjectUtil.isNotEmpty(openId)){
claims.put("openId",openId);
}
if(ObjectUtil.isNotEmpty(phone)){
claims.put("phone",phone);
}
if(ObjectUtil.isNotEmpty(userName)){
claims.put("userName",userName);
}
return generateToken(claims);
}
public static String generateJfToken(String openId,String userSign) throws Exception {