Browse Source

调整图片检测尺度

xielin 5 years ago
parent
commit
04b7b6518c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Service/DetectionService.php

+ 1 - 1
app/Service/DetectionService.php

@@ -92,7 +92,7 @@ class DetectionService
             $suggestion = $sceneResult->suggestion;
             $label = $sceneResult->label;
             //如果为色情,辱骂,摄政,违禁 标签,并且建议为block 则不通过
-            if(in_array($label,['porn','abuse','politics','contraband'])){
+            if(in_array($label,['porn','abuse','politics','contraband','others'])){
                 if ($suggestion == 'block') {
                     $flag = false;
                 }