ソースを参照

调整图片检测尺度

xielin 5 年 前
コミット
04b7b6518c
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  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;
                 }