Ver Fonte

feet:图片上传支持无后缀

panzhilin há 4 dias atrás
pai
commit
f50ec2f5c2

+ 2 - 1
alien-store/src/main/java/shop/alien/store/service/impl/LifeFeedbackServiceImpl.java

@@ -453,7 +453,8 @@ public class LifeFeedbackServiceImpl extends ServiceImpl<LifeFeedbackMapper, Lif
                lowerUrl.endsWith(".bmp") ||
                lowerUrl.endsWith(".webp") ||
                lowerUrl.endsWith(".gif") ||
-               lowerUrl.endsWith(".svg");
+               lowerUrl.endsWith(".svg") ||
+               lowerUrl.endsWith("");
     }