mirror of https://github.com/helloxz/imgurl
修复一处错误
parent
72c1b3abab
commit
a0e8c19ec5
|
@ -51,7 +51,7 @@
|
||||||
//@todo 建议使用列表类型而不是联名数组类型保存key
|
//@todo 建议使用列表类型而不是联名数组类型保存key
|
||||||
$keys = json_decode($keys, true);
|
$keys = json_decode($keys, true);
|
||||||
$i = 'api'.rand(1, count($keys));
|
$i = 'api'.rand(1, count($keys));
|
||||||
$key = $keys[$i-1];
|
$key = $keys[$i];
|
||||||
|
|
||||||
$url = "https://api.tinify.com/shrink";
|
$url = "https://api.tinify.com/shrink";
|
||||||
$data = file_get_contents($path);
|
$data = file_get_contents($path);
|
||||||
|
|
Loading…
Reference in New Issue