Commit ee1d5c7e60e31d983982d257713c99afc52c7cff
Committed by
Gitee
!675 线上修改 文件管理->文件配置->更换主配置 导致文件上传报错
Merge pull request !675 from 人生三两事/master
Showing
1 changed file
with
2 additions
and
2 deletions
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/service/file/FileConfigServiceImpl.java
| ... | ... | @@ -58,9 +58,9 @@ public class FileConfigServiceImpl implements FileConfigService { |
| 58 | 58 | FileConfigDO config = Objects.equals(CACHE_MASTER_ID, id) ? |
| 59 | 59 | fileConfigMapper.selectByMaster() : fileConfigMapper.selectById(id); |
| 60 | 60 | if (config != null) { |
| 61 | - fileClientFactory.createOrUpdateFileClient(id, config.getStorage(), config.getConfig()); | |
| 61 | + fileClientFactory.createOrUpdateFileClient(config.getId(), config.getStorage(), config.getConfig()); | |
| 62 | 62 | } |
| 63 | - return fileClientFactory.getFileClient(id); | |
| 63 | + return fileClientFactory.getFileClient(null == config ? id : config.getId()); | |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | }); | ... | ... |