From a0e8c19ec5dda34ad2185f6143a695de3216d8f7 Mon Sep 17 00:00:00 2001 From: xiaoz Date: Fri, 15 Mar 2019 12:57:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E5=A4=84=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/Deal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Deal.php b/application/controllers/Deal.php index be9f4e7..3cbccfc 100644 --- a/application/controllers/Deal.php +++ b/application/controllers/Deal.php @@ -51,7 +51,7 @@ //@todo 建议使用列表类型而不是联名数组类型保存key $keys = json_decode($keys, true); $i = 'api'.rand(1, count($keys)); - $key = $keys[$i-1]; + $key = $keys[$i]; $url = "https://api.tinify.com/shrink"; $data = file_get_contents($path);