瀏覽代碼

照片时间

hyy 1 月之前
父節點
當前提交
f395001776

+ 1 - 1
yudao-module-museums/yudao-module-museums-biz/src/main/java/cn/iocoder/yudao/module/museums/controller/admin/photogroup/PhotoGroupController.java

@@ -110,7 +110,7 @@ public class PhotoGroupController {
             @RequestParam("file") MultipartFile file) {
 
         LocalDateTime groupDate = null;
-        if (groupDateStr != null) {
+        if (groupDateStr != null && !groupDateStr.isEmpty()) {
             try {
                 long timestamp = Long.parseLong(groupDateStr);
                 Instant instant = Instant.ofEpochMilli(timestamp);