fix 修改设置前缀问题

master
管理员 1 year ago
parent bff4d692e5
commit ebd9fcfaba

@ -166,7 +166,7 @@ public interface FileService {
*/
default FileService setPrefix(String prefix) {
if (StrUtil.isBlank(prefix)) {
throw new RuntimeException("路径前缀不能为空");
return this;
}
if (!prefix.matches("^[\\w\\-]+$")) {
throw new RuntimeException("路径前缀规则错误");

Loading…
Cancel
Save