From 9eca05f94d580ead4cca95d8e81515bee546ba3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B2=9A=E9=9B=A8=E5=87=9B?= Date: Tue, 28 May 2024 23:57:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E7=89=87=E5=AE=A1=E6=A0=B8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v1.1.3 1.修改腾讯审核Util类名错误 Signed-off-by: 岚雨凛 --- src/main/kotlin/module/ImageCheckModule.kt | 2 +- .../kotlin/util/{TencentCheckModule.kt => TencentCheckUtil.kt} | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) rename src/main/kotlin/util/{TencentCheckModule.kt => TencentCheckUtil.kt} (97%) diff --git a/src/main/kotlin/module/ImageCheckModule.kt b/src/main/kotlin/module/ImageCheckModule.kt index 36bfa2c..9c22202 100644 --- a/src/main/kotlin/module/ImageCheckModule.kt +++ b/src/main/kotlin/module/ImageCheckModule.kt @@ -14,7 +14,7 @@ import com.yulin.entity.LocalBody import com.yulin.util.AliImageCheckUtil.aliImageCheckFun import com.yulin.util.CacheUtil import com.yulin.util.InternetUtil -import com.yulin.util.TencentCheckModule.tencentImageCheckUtil +import com.yulin.util.TencentCheckUtil.tencentImageCheckUtil import com.yulin.util.YuLinImageUtil import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext diff --git a/src/main/kotlin/util/TencentCheckModule.kt b/src/main/kotlin/util/TencentCheckUtil.kt similarity index 97% rename from src/main/kotlin/util/TencentCheckModule.kt rename to src/main/kotlin/util/TencentCheckUtil.kt index 9bf7b65..612a413 100644 --- a/src/main/kotlin/util/TencentCheckModule.kt +++ b/src/main/kotlin/util/TencentCheckUtil.kt @@ -8,8 +8,7 @@ import com.qcloud.cos.model.ciModel.auditing.ImageAuditingResponse import com.qcloud.cos.region.Region import com.yulin.config.ImageCheckApiConfig -object TencentCheckModule { - +object TencentCheckUtil { private val cred by lazy { BasicCOSCredentials(ImageCheckApiConfig.tencentApi.secretId, ImageCheckApiConfig.tencentApi.secretKey) } private val clientConfig by lazy { ClientConfig(Region(ImageCheckApiConfig.tencentApi.region))