This commit is contained in:
Wisp X 2022-03-23 17:15:24 +08:00
parent 71924b0397
commit 979b628f59
2 changed files with 1 additions and 5 deletions

View File

@ -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')],

View File

@ -429,10 +429,6 @@ class ImageService
}
}
}
if ($driver === 'baidu') {
}
} catch (\Throwable $e) {
throw new UploadException('Scan: '.$e->getMessage());
}