Ver código fonte

动态bug修复

xiaogang 3 anos atrás
pai
commit
54115a42c0
1 arquivos alterados com 1 adições e 1 exclusões
  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张图片");
         }