Skip to content

Commit 79edf71

Browse files
committed
首页文章列表首图默认随机
1 parent cf58d71 commit 79edf71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blog-api/src/main/java/com/rawchen/controller/admin/BlogAdminController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public Result updateBlog(@RequestBody com.rawchen.model.dto.Blog blog) {
189189
*/
190190
private Result getResult(com.rawchen.model.dto.Blog blog, String type) {
191191
//验证普通字段
192-
if (StringUtils.isEmpty(blog.getTitle(),blog.getFirstPicture(), blog.getContent(), blog.getDescription())) {
192+
if (StringUtils.isEmpty(blog.getTitle(), blog.getContent(), blog.getDescription())) {
193193
return Result.error("参数有误");
194194
}
195195

0 commit comments

Comments
 (0)