Explorar o código

图片数量和大小限制

qng %!s(int64=3) %!d(string=hai) anos
pai
achega
0ed1eabc9c

+ 1 - 1
kmall-admin/src/main/java/com/kmall/admin/controller/GoodsController.java

@@ -486,7 +486,7 @@ public class GoodsController {
             long end = System.currentTimeMillis();
             System.out.println("解压完成,耗时:" + (end - start) +" ms");
         }catch (RRException e) {
-            throw new RRException("商品图片过大(最大1M),请检查!", e);
+            throw new RRException(e.getMessage(), e);
         }catch (Exception e) {
             throw new RuntimeException("unzip error from ZipUtils", e);
         } finally {