xiaogang 3 anni fa
parent
commit
54115a42c0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/Services/DynamicService.php

+ 1 - 1
app/Services/DynamicService.php

xqd
@@ -82,7 +82,7 @@ class DynamicService
             }
         }
 
-        if(count($dynamicParam->img_url)>6){
+        if(!empty($dynamicParam->img_url) && count($dynamicParam->img_url)>6){
             throw new Exception("最多上传6张图片");
         }