1 | <?php |
||
15 | final class ArgusManager |
||
16 | { |
||
17 | private $auth; |
||
18 | private $config; |
||
19 | |||
20 | public function __construct(Auth $auth, Config $config = null) |
||
29 | |||
30 | /** |
||
31 | * 视频审核 |
||
32 | * |
||
33 | * @param $body body信息 |
||
34 | * |
||
35 | * @return mixed 成功返回NULL,失败返回对象Qiniu\Http\Error |
||
36 | * @link https://developer.qiniu.com/censor/api/5620/video-censor |
||
37 | */ |
||
38 | public function censorVideo($body) |
||
44 | |||
45 | |||
46 | /** |
||
47 | * 图片审核 |
||
48 | * |
||
49 | * @param $body |
||
50 | * |
||
51 | * @return mixed 成功返回NULL,失败返回对象Qiniu\Http\Error |
||
52 | * @link https://developer.qiniu.com/censor/api/5588/image-censor |
||
53 | */ |
||
54 | public function censorImage($body) |
||
60 | |||
61 | /** |
||
62 | * 查询视频审核结果 |
||
63 | * |
||
64 | * @param $jobid 任务ID |
||
65 | * @return array |
||
66 | * @link https://developer.qiniu.com/censor/api/5620/video-censor |
||
67 | */ |
||
68 | public function censorStatus($jobid) |
||
83 | |||
84 | private function getArHost() |
||
92 | |||
93 | private function arPost($path, $body = null) |
||
98 | |||
99 | private function get($url) |
||
105 | |||
106 | private function post($url, $body) |
||
122 | } |
||
123 |
When comparing two booleans, it is generally considered safer to use the strict comparison operator.