ソースを参照

发布内容图片

wzq 5 年 前
コミット
6c215d22cf
共有1 個のファイルを変更した3 個の追加0 個の削除を含む
  1. 3 0
      app/Repositories/PostRepositories.php

+ 3 - 0
app/Repositories/PostRepositories.php

@@ -113,6 +113,9 @@ class PostRepositories
             }
         }
         $allImg = array_merge($imgs, [$request['img']]);
+        foreach($allImg as &$img){
+            $img = $img .'&x-oss-process=image/resize,p_30';
+        }
         $detectionImageResult = $this->detectionService->checkImg($allImg);
         if ($detectionImageResult['code']<0) {
             return jsonError('图片违规,请修正哦');