diff --git a/app/Http/Requests/Admin/GroupRequest.php b/app/Http/Requests/Admin/GroupRequest.php index 0c3db560..de6ead42 100644 --- a/app/Http/Requests/Admin/GroupRequest.php +++ b/app/Http/Requests/Admin/GroupRequest.php @@ -43,7 +43,7 @@ class GroupRequest extends FormRequest 'exclude_if:configs.is_enable_scan,false', 'in:mark,delete', ], - 'configs.scan_configs.driver' => ['exclude_if:configs.is_enable_scan,false', 'in:tencent,aliyun,baidu'], + 'configs.scan_configs.driver' => ['exclude_if:configs.is_enable_scan,false', 'in:tencent,aliyun'], 'configs.scan_configs.drivers.tencent.endpoint' => [$requiredIfReview('tencent')], 'configs.scan_configs.drivers.tencent.secret_id' => [$requiredIfReview('tencent')], 'configs.scan_configs.drivers.tencent.secret_key' => [$requiredIfReview('tencent')], diff --git a/app/Services/ImageService.php b/app/Services/ImageService.php index 55c31073..5cbb6021 100644 --- a/app/Services/ImageService.php +++ b/app/Services/ImageService.php @@ -429,10 +429,6 @@ class ImageService } } } - - if ($driver === 'baidu') { - - } } catch (\Throwable $e) { throw new UploadException('Scan: '.$e->getMessage()); }