This commit is contained in:
=
2022-02-13 16:14:46 +08:00
parent dc83ee7adc
commit 77999a704e
11 changed files with 73 additions and 77 deletions

View File

@@ -87,13 +87,12 @@ if ($handle->uploaded) {
/** 后续处理 */
require APP_ROOT . '/application/process.php';
// 普通模式鉴黄
@process_checkImg($imageUrl);
// 使用fastcgi_finish_request操作
if (function_exists('fastcgi_finish_request')) {
fastcgi_finish_request();
// 普通模式鉴黄
@process_checkImg($imageUrl);
// 日志
if ($config['upload_logs']) @write_log($pathIMG, $handle->file_src_name, $handle->file_dst_pathname, $handle->file_src_size);
// 水印
@@ -101,6 +100,8 @@ if ($handle->uploaded) {
// 压缩
@compress($handle->file_dst_pathname);
} else {
// 普通模式鉴黄
@process_checkImg($imageUrl);
// 日志
if ($config['upload_logs']) write_log($pathIMG, $handle->file_src_name, $handle->file_dst_pathname, $handle->file_src_size);
// 水印
@@ -108,5 +109,6 @@ if ($handle->uploaded) {
// 压缩
@compress($handle->file_dst_pathname);
}
unset($handle);
}