From 19ef4ca4f7252c34fe2e2a03b8868fc997ddd86f Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期五, 13 九月 2024 08:37:38 +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