From b7b7746a79d0a54bd20db228b7ef80fabde15cae Mon Sep 17 00:00:00 2001 From: carlyin Date: Tue, 7 Jan 2025 17:18:08 +0800 Subject: [PATCH] =?UTF-8?q?bug=EF=BC=9A=E5=A4=9A=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E6=83=85=E5=86=B5=E4=B8=8B=E6=B5=81=E6=B0=B4=E7=BA=BF=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E9=A1=B5=E9=9D=A2=E6=8F=92=E4=BB=B6logo=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E4=BC=98=E5=8C=96=20#11380?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../devops/store/atom/service/impl/AtomPropServiceImpl.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/atom/service/impl/AtomPropServiceImpl.kt b/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/atom/service/impl/AtomPropServiceImpl.kt index 3c876e34cac..5424da5817d 100644 --- a/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/atom/service/impl/AtomPropServiceImpl.kt +++ b/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/atom/service/impl/AtomPropServiceImpl.kt @@ -34,18 +34,17 @@ import com.tencent.devops.common.api.constant.CommonMessageCode import com.tencent.devops.common.api.exception.ErrorCodeException import com.tencent.devops.common.api.util.JsonUtil import com.tencent.devops.common.api.util.ThreadLocalUtil -import com.tencent.devops.common.service.utils.HomeHostUtil import com.tencent.devops.common.util.RegexUtils import com.tencent.devops.common.web.utils.BkApiUtil import com.tencent.devops.common.web.utils.I18nUtil import com.tencent.devops.model.store.tables.TAtom import com.tencent.devops.store.atom.dao.AtomDao import com.tencent.devops.store.atom.dao.AtomPropDao -import com.tencent.devops.store.pojo.atom.AtomProp import com.tencent.devops.store.atom.service.AtomPropService import com.tencent.devops.store.common.service.StoreI18nMessageService import com.tencent.devops.store.common.service.action.StoreDecorateFactory import com.tencent.devops.store.common.utils.StoreUtils +import com.tencent.devops.store.pojo.atom.AtomProp import com.tencent.devops.store.pojo.atom.enums.AtomStatusEnum import com.tencent.devops.store.pojo.common.ATOM_OUTPUT import com.tencent.devops.store.pojo.common.enums.StoreTypeEnum @@ -86,7 +85,7 @@ class AtomPropServiceImpl @Autowired constructor( // 从缓存中查找插件属性信息 var queryDbAtomCodes: MutableList? = null val referer = BkApiUtil.getHttpServletRequest()?.getHeader(REFERER) ?: ThreadLocalUtil.get(REFERER)?.toString() - val refererHost = referer?.let { HomeHostUtil.getHost(referer) } ?: "" + val refererHost = referer?.let { RegexUtils.splitDomainContextPath("$referer/")?.first } ?: "" atomCodes.forEach { atomCode -> val atomProp = atomPropCache.getIfPresent("$refererHost:$atomCode") if (atomProp != null) {