소스 검색

动态bug修复

xiaogang 3 년 전
부모
커밋
54115a42c0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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张图片");
         }