netty
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user