Skip to content

Commit

Permalink
pref:插件国际化properties文件value值支持引入文件 TencentBlueKing#9366
Browse files Browse the repository at this point in the history
  • Loading branch information
yjieliang committed Oct 8, 2023
1 parent aad7bed commit 30bef82
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ object CommonUtils {
fileType: String? = null
): Result<String?> {
val serviceUrl = "$serviceUrlPrefix/service/artifactories/file/upload" +
"?userId=$userId&fileChannelType=$fileChannelType&logo=$logo" + fileType?.let { "&fileType=$fileType" }
"?userId=$userId&fileChannelType=$fileChannelType&logo=$logo" +
(fileType?.let { "&fileType=$it" } ?: "")
logger.info("the serviceUrl is:$serviceUrl")
OkhttpUtils.uploadFile(serviceUrl, file).use { response ->
val responseContent = response.body!!.string()
Expand Down

0 comments on commit 30bef82

Please sign in to comment.