kaiyu
2021-10-09 fe26987e7e18b57d43b096631d1b1534d2fe86ec
screen-common/src/main/java/com/moral/util/TokenUtils.java
@@ -85,7 +85,7 @@
     * @Author: 陈凯裕
     * @Date: 2021/3/10
     */
    public static void checkToken(String token) {
    public static boolean checkToken(String token) {
        try {
            String[] tokenArray = TokenEncryptUtils.decoded(token).split("/");
            //校验token是否合法
@@ -99,9 +99,9 @@
                        ResponseCodeEnum.TOKEN_INVALID.getMsg());
            }
        } catch (Exception e) {
            throw new TokenException(ResponseCodeEnum.TOKEN_INVALID.getCode(),
                    ResponseCodeEnum.TOKEN_INVALID.getMsg());
            return false;
        }
        return true;
    }