添加热更新&修复bug

This commit is contained in:
liucaifu 2022-10-24 17:08:14 +08:00
parent 1e68c54f92
commit 2f3a69d278
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package cn.axzo.oss.integration.s3.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;
/**
@ -9,6 +10,7 @@ import org.springframework.stereotype.Component;
* @author: mr.jie
* @date: 2021-07-29 17:57
**/
@RefreshScope
@Component
public class AliOssConfig {

View File

@ -179,7 +179,8 @@ public class FileServiceImpl implements FileService {
// 保存失败
if (Utility.isBlank(fileUrl)) {
fileDao.save(ossFile);
log.error("fileUrl is empty");
//fileDao.save(ossFile);
throw new BizException(CodeEnum.FILE_UPLOAD_FAILED);
}