|
@@ -172,14 +172,14 @@ class DetectionService
|
|
|
array_push($taskArr, $$task);
|
|
|
}
|
|
|
$request->setContent(json_encode(array("tasks" => $taskArr,
|
|
|
- "scenes" => array("ad", "porn", "terrorism"))));
|
|
|
+ "scenes" => array("porn", "terrorism"))));
|
|
|
}else if(is_string($img)){
|
|
|
$task1 = array('dataId' => md5(uniqid()),
|
|
|
'url' => $img,
|
|
|
'time' => round(microtime(true)*1000)
|
|
|
);
|
|
|
$request->setContent(json_encode(array("tasks" => array($task1),
|
|
|
- "scenes" => array("ad", "porn", "terrorism"))));
|
|
|
+ "scenes" => array("porn", "terrorism"))));
|
|
|
}
|
|
|
return $this->processResponse($request);
|
|
|
}
|