|
@@ -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('图片违规,请修正哦');
|