From fb2b3d5e47e126e41aa7ae8a7909bda1ff47effa Mon Sep 17 00:00:00 2001 From: Wisp X <1591788658@qq.com> Date: Tue, 30 Apr 2019 11:49:51 +0800 Subject: [PATCH] =?UTF-8?q?:beers:=20=E9=89=B4=E9=BB=84=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AF=B7=E6=B1=82=E8=B6=85=E6=97=B6=E6=97=B6?= =?UTF-8?q?=E9=97=B4=EF=BC=9A30=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/controller/Upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/index/controller/Upload.php b/application/index/controller/Upload.php index 4856168e..6464e3ba 100644 --- a/application/index/controller/Upload.php +++ b/application/index/controller/Upload.php @@ -101,7 +101,7 @@ class Upload extends Base // 图片鉴黄 $suspicious = 0; if ($this->config['open_audit']) { - $client = new Client(); + $client = new Client(['timeout' => 30.00]); $response = $client->get("https://www.moderatecontent.com/api/v2?key={$this->config['audit_key']}&url={$url}"); if (200 == $response->getStatusCode()) { $result = json_decode($response->getBody()->getContents());