Compare commits
2 Commits
bfb243867b
...
d2ed8d139c
| Author | SHA1 | Date | |
|---|---|---|---|
| d2ed8d139c | |||
| 553c010dc2 |
@@ -222,7 +222,7 @@ class Upload
|
||||
$config_model = new \app\admin\controller\v1\SiteConfig;
|
||||
$config = $config_model->getByGroupUniqueLabel('upload');
|
||||
$options = data_get($config, $module, []);
|
||||
throw_if(empty($options), '上传配置错误');
|
||||
|
||||
return [
|
||||
'filename_keep' => (int)data_get($options, 'filename_keep.value', 0) == 1,
|
||||
'filemd5_unique' => (int)data_get($options, 'filemd5_unique.value', 0) == 1,
|
||||
|
||||
Reference in New Issue
Block a user