mirror of https://github.com/halo-dev/halo
🐛 修复文章保存失败的问题
parent
493fc48d5b
commit
f37f9656f6
|
@ -164,7 +164,7 @@ public class PostController extends BaseController {
|
|||
try {
|
||||
//提取摘要
|
||||
int postSummary = 50;
|
||||
if (StringUtils.isNotEmpty(BlogProperties.POST_SUMMARY.getProp())) {
|
||||
if (StringUtils.isNotEmpty(HaloConst.OPTIONS.get(BlogProperties.POST_SUMMARY.getProp()))) {
|
||||
postSummary = Integer.parseInt(HaloConst.OPTIONS.get(BlogProperties.POST_SUMMARY.getProp()));
|
||||
}
|
||||
//文章摘要
|
||||
|
|
Loading…
Reference in New Issue