Browse Source

动态bug修复

xiaogang 3 years ago
parent
commit
54115a42c0
1 changed files with 1 additions and 1 deletions
  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张图片");
         }