1
0
mirror of https://github.com/cjango/dcat-vue.git synced 2025-12-06 22:40:03 +08:00

一些优化

This commit is contained in:
weiwait
2023-01-06 09:47:29 +08:00
parent 3ec466e9ee
commit cc5b77b993
3 changed files with 6 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ class FilesystemConfig extends Form
$methodChanged = collect($config->get('oss_allowed_methods', []))->diff($data['oss_allowed_methods']);
$masChanged = collect($config->get('oss_mas', 0))->diff($data['oss_mas']);
if ($originChanged || $methodChanged || $masChanged) {
if ($originChanged->isNotEmpty() || $methodChanged->isNotEmpty() || $masChanged->isNotEmpty()) {
$rule = new CorsRule();
$rule->setMaxAgeSeconds($data['oss_mas']);