Ver código fonte

添加密钥转换hash方法

gao.qiang 1 ano atrás
pai
commit
d866cffbaa

+ 1 - 1
base-common/src/main/java/com/ozs/common/utils/HeartbeatUtils.java

@@ -45,7 +45,7 @@ public class HeartbeatUtils {
      * @return
      */
     public void createHeartbeat(String code, String site) {
-        redisCache.setCacheObject(code, site, 10, TimeUnit.MINUTES);
+        redisCache.setCacheObject(code, site, 10000, TimeUnit.MINUTES);
     }
 
     /**

+ 2 - 2
base-common/src/main/java/com/ozs/common/utils/stateSecrets/SM4Utils.java

@@ -141,7 +141,7 @@ public class SM4Utils
 
 	public  static  void hash(){
 		//授权类型+环境变量+客户端编号
-		String  key="1+1+1005";
+		String  key="1+2+1006";
 		System.out.println(key.hashCode());
 	}
 
@@ -149,7 +149,7 @@ public class SM4Utils
 	{
 //		hash();
 		
-		String plainText = "4370780c9a8c43e5";
+		String plainText = "4789894960000000";
 
 		SM4Utils sm4 = new SM4Utils();
 		sm4.hexString = false;