Commit af6e6022 authored by Tiank's avatar Tiank

图片名

parent 3641da40
......@@ -42,6 +42,11 @@ public struct UploadPhotoAttachmentModel {
init(_ fileName: String, _ fileUrl: String, _ entityType: String, _ entityUuid: String) {
self.fileName = fileName
if fileUrl.contains(".jpg"){
self.fileName = self.fileName + ".jpg"
}else if fileUrl.contains(".png"){
self.fileName = self.fileName + ".png"
}
self.fileUrl = fileUrl
self.entityType = entityType
self.entityUuid = entityUuid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment