diff --git a/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/dao/common/StoreLogoDao.kt b/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/dao/common/StoreLogoDao.kt index a126ec420d1..b668c8113cd 100644 --- a/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/dao/common/StoreLogoDao.kt +++ b/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/dao/common/StoreLogoDao.kt @@ -32,6 +32,7 @@ import com.tencent.devops.model.store.tables.TLogo import com.tencent.devops.model.store.tables.records.TLogoRecord import com.tencent.devops.store.pojo.common.Logo import com.tencent.devops.store.pojo.common.StoreLogoReq +import com.tencent.devops.store.service.common.action.StoreDecorateFactory import org.jooq.DSLContext import org.jooq.Result import org.springframework.stereotype.Repository @@ -107,7 +108,9 @@ class StoreLogoDao { with(record) { return Logo( id = id, - logoUrl = logoUrl, + logoUrl = logoUrl?.let { + StoreDecorateFactory.get(StoreDecorateFactory.Kind.HOST)?.decorate(it) as? String + } ?: "", logoType = type, order = order, link = link, diff --git a/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/dao/common/StoreMediaInfoDao.kt b/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/dao/common/StoreMediaInfoDao.kt index 5685d967698..940769c39c5 100644 --- a/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/dao/common/StoreMediaInfoDao.kt +++ b/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/dao/common/StoreMediaInfoDao.kt @@ -32,6 +32,7 @@ import com.tencent.devops.model.store.tables.TStoreMediaInfo import com.tencent.devops.model.store.tables.records.TStoreMediaInfoRecord import com.tencent.devops.store.pojo.common.StoreMediaInfo import com.tencent.devops.store.pojo.common.StoreMediaInfoRequest +import com.tencent.devops.store.service.common.action.StoreDecorateFactory import org.jooq.DSLContext import org.jooq.Result import org.springframework.stereotype.Repository @@ -110,7 +111,9 @@ class StoreMediaInfoDao { return StoreMediaInfo( id = id, storeCode = storeCode, - mediaUrl = mediaUrl, + mediaUrl = mediaUrl?.let { + StoreDecorateFactory.get(StoreDecorateFactory.Kind.HOST)?.decorate(it) as? String + } ?: "", mediaType = mediaType, create = creator, modifier = modifier,