mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
fileType加入空匹配,可支持空传
This commit is contained in:
parent
f030104ff2
commit
8c33267887
@ -23,7 +23,7 @@ import java.util.Base64
|
|||||||
val targetFile = FileUtils.getFileByMd5(file)
|
val targetFile = FileUtils.getFileByMd5(file)
|
||||||
return if (targetFile.exists()) {
|
return if (targetFile.exists()) {
|
||||||
when (fileType) {
|
when (fileType) {
|
||||||
"base64" -> ok(
|
"base64", "" -> ok(
|
||||||
OutResourceByBase64(
|
OutResourceByBase64(
|
||||||
"/res/${targetFile.nameWithoutExtension}",
|
"/res/${targetFile.nameWithoutExtension}",
|
||||||
Base64.getEncoder()
|
Base64.getEncoder()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user