瀏覽代碼

动态bug修复

xiaogang 3 年之前
父節點
當前提交
54115a42c0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Services/DynamicService.php

+ 1 - 1
app/Services/DynamicService.php

@@ -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张图片");
             throw new Exception("最多上传6张图片");
         }
         }