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))