From 789858199b96626be2844a39ee2849d2534c6081 Mon Sep 17 00:00:00 2001
From: 代星登 <2283268848@qq.com>
Date: 星期一, 05 六月 2023 14:57:15 +0800
Subject: [PATCH] [update] 更改 /auth/tenant/list api,获取租户列表时,从请求头中referer属性中取值,方便本地通过修改hosts文件来达到域名测试的场景

---
 ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/utils/EncryptUtils.java |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/utils/EncryptUtils.java b/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/utils/EncryptUtils.java
index 6ed9fe7..3504573 100644
--- a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/utils/EncryptUtils.java
+++ b/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/utils/EncryptUtils.java
@@ -230,4 +230,14 @@
         return SecureUtil.sha256(data);
     }
 
+    /**
+     * sm3鍔犲瘑
+     *
+     * @param data 寰呭姞瀵嗘暟鎹�
+     * @return 鍔犲瘑鍚庡瓧绗︿覆, 閲囩敤Hex缂栫爜
+     */
+    public static String encryptBySm3(String data) {
+        return SmUtil.sm3(data);
+    }
+
 }

--
Gitblit v1.9.3