mirror of https://github.com/halo-dev/halo
fix: Remove the code that filters empty strings from the properties file
* fix: Remove the code that filters empty strings from the properties file. * blog birthday default value set "0"pull/1697/head
parent
4d71185066
commit
4354991a9e
|
@ -23,7 +23,7 @@ public enum PrimaryProperties implements PropertyEnum {
|
||||||
/**
|
/**
|
||||||
* blog birthday
|
* blog birthday
|
||||||
*/
|
*/
|
||||||
BIRTHDAY("birthday", Long.class, ""),
|
BIRTHDAY("birthday", Long.class, "0"),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* developer mode.
|
* developer mode.
|
||||||
|
|
|
@ -213,10 +213,6 @@ public class OptionServiceImpl extends AbstractCrudService<Option, Integer>
|
||||||
.forEach(key -> {
|
.forEach(key -> {
|
||||||
PropertyEnum propertyEnum = propertyEnumMap.get(key);
|
PropertyEnum propertyEnum = propertyEnumMap.get(key);
|
||||||
|
|
||||||
if (StringUtils.isBlank(propertyEnum.defaultValue())) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
result.put(key,
|
result.put(key,
|
||||||
PropertyEnum.convertTo(propertyEnum.defaultValue(), propertyEnum));
|
PropertyEnum.convertTo(propertyEnum.defaultValue(), propertyEnum));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue