diff --git a/README.md b/README.md index 43089aa..d797a2f 100755 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ RewriteRule config/(.*).(php)$ – [F]
点击查看2.0版更新日志 -* 2021年10月30日 +* 2021年10月30日 v2.3.1 - 增加监黄接口 - 增加对php5.6-php8.0的支持 - 修复二级目录无法使用 diff --git a/config/config.php b/config/config.php index 3dec031..f75147d 100755 --- a/config/config.php +++ b/config/config.php @@ -179,7 +179,7 @@ $config = array( * 从 https://moderatecontent.com/ 获取key并填入/config/api_key.php的图片检查key * 开启后会受服务器到https://moderatecontent.com/ 速度影响,国内不建议开启! */ - 'checkImg' => true, + 'checkImg' => false, // 设置是不良图片概率,概率越大准确率越高, 'checkImg_value' => 50, // 当前版本 diff --git a/file.php b/file.php index 153bb1b..9cfbdf8 100755 --- a/file.php +++ b/file.php @@ -120,7 +120,7 @@ if ($handle->uploaded) { if($config['checkImg']){ require_once APP_ROOT . '/config/api_key.php'; - checkImg($imageUrl); + @checkImg($imageUrl); } }