|
@@ -12,6 +12,7 @@ import org.springframework.http.MediaType;
|
|
|
import org.springframework.http.ZeroCopyHttpOutputMessage;
|
|
|
import org.springframework.http.server.reactive.ServerHttpResponse;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.util.ObjectUtils;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
import reactor.core.publisher.Mono;
|
|
|
|
|
@@ -49,7 +50,11 @@ public class SinglePageServiceImpl implements SinglePageService {
|
|
|
PageContent pageContent = singlePageDao.getFreePageById(id);
|
|
|
String mobileContent = singlePageDao.findMobileContent(id);
|
|
|
if (StringUtils.isEmpty(mobileContent)) {
|
|
|
- pageContent.setMobileContent(pageContent.getContent());
|
|
|
+ if (!ObjectUtils.isEmpty(pageContent.getContent())) {
|
|
|
+ pageContent.setMobileContent(pageContent.getContent());
|
|
|
+ } else {
|
|
|
+ pageContent.setMobileContent("");
|
|
|
+ }
|
|
|
} else {
|
|
|
pageContent.setMobileContent(mobileContent);
|
|
|
}
|