From a40221c883c632630b4876ad846e08c0da8af388 Mon Sep 17 00:00:00 2001
From: Jay <csj123456>
Date: 星期三, 16 十月 2024 09:20:23 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/utils/ApiSecurityUtils.java |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/utils/ApiSecurityUtils.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/utils/ApiSecurityUtils.java
index 72287f7..774c1e4 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/utils/ApiSecurityUtils.java
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/utils/ApiSecurityUtils.java
@@ -5,10 +5,6 @@
 import com.iailab.framework.common.pojo.CommonResult;
 import com.iailab.framework.security.core.LoginUser;
 import com.iailab.framework.security.core.util.SecurityFrameworkUtils;
-import com.iailab.module.data.gateway.entity.ApiAppEntity;
-import com.iailab.module.data.gateway.service.ApiAppService;
-import com.iailab.module.data.gateway.entity.ApiAppEntity;
-import com.iailab.module.data.gateway.service.ApiAppService;
 import com.iailab.module.system.api.user.AdminUserApi;
 import com.iailab.module.system.api.user.dto.AdminUserRespDTO;
 import org.apache.commons.lang3.StringUtils;
@@ -27,8 +23,8 @@
 @Component
 public class ApiSecurityUtils {
 
-    @Resource
-    private ApiAppService apiAppService;
+    /*@Resource
+    private ApiAppService apiAppService;*/
 
     @Resource
     private AdminUserApi adminUserApi;
@@ -63,10 +59,10 @@
         }
         AdminUserRespDTO userData = user.getData();
         String username = userData.getUsername();
-        ApiAppEntity appInfo = apiAppService.getInfoByAppKey(username);
+        /*ApiAppEntity appInfo = apiAppService.getInfoByAppKey(username);
         if (appInfo == null) {
             throw new RuntimeException("应用未授权");
-        }
+        }*/
         //TODO 验证签名
 //        if(!com.iailab.common.utils.JwtUtils.verify(token, appInfo.getAppSecret())){
 //            throw new RuntimeException("签名错误");

--
Gitblit v1.9.3