Commit 0ea84a84 by 段启岩

修复不能上传动态图片的问题

parent a838b3fa
...@@ -56,7 +56,7 @@ public class PostApi { ...@@ -56,7 +56,7 @@ public class PostApi {
//对图片进行类型转换 //对图片进行类型转换
Post post = new Post(); Post post = new Post();
BeanUtils.copyProperties(postForm, post); BeanUtils.copyProperties(postForm, post);
if (null != post.getPictures()){ if (!StringUtils.isEmpty(postForm.getPictures())){
post.setPictures(postForm.getPictures() post.setPictures(postForm.getPictures()
.stream().map(String::valueOf) .stream().map(String::valueOf)
.collect(Collectors.joining(","))); .collect(Collectors.joining(",")));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment