This commit is contained in:
2024-06-11 14:52:24 +08:00
parent f348972126
commit 7367e11c92
28 changed files with 2994 additions and 1558 deletions

View File

@@ -33,7 +33,7 @@ public class TokenUtil {
* @param phone
* @return
*/
public static String generateToken(Integer userId,String openId,String phone,String userName) throws Exception {
public static String generateToken(Integer userId,String openId,String phone,String userName){
Map<String, Object> claims = new HashMap<>(1);
claims.put("userId", userId);
if(ObjectUtil.isNotEmpty(openId)){
@@ -114,8 +114,7 @@ public class TokenUtil {
}catch (Exception e){
jsonObject.put("status","-4");
jsonObject.put("message","token解析失败了");
log.info("token解析失败token为{} message{}",token,e.getMessage());
e.printStackTrace();
log.info("token解析失败token为{} Exception{}",token,e.getMessage());
}
return jsonObject;
}