Browse Source

反恐图片

wzq 5 years ago
parent
commit
c42292a8d2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Service/DetectionService.php

+ 1 - 1
app/Service/DetectionService.php

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