kaiyu
2021-05-21 a1d7ab78b0d4d93d4a7982bb60887358aa02ad79
screen-common/src/main/java/com/moral/util/TokenEncryptUtils.java
@@ -1,5 +1,6 @@
package com.moral.util;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@@ -11,6 +12,7 @@
 * @Version TODO
 **/
@Component
@Slf4j
public class TokenEncryptUtils {
    private static  String key;
@@ -42,7 +44,7 @@
        try {
            hexStr = hexStrToStr(str);
        } catch (Exception e) {
            e.printStackTrace();
            log.error("token解密失败"+e.getMessage());
        }
        if (hexStr != null) {
            hexStr = encodedString(hexStr, key);