|
@@ -17,6 +17,7 @@ import org.springframework.http.ZeroCopyHttpOutputMessage;
|
|
|
import org.springframework.http.server.reactive.ServerHttpResponse;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
+import org.springframework.util.StringUtils;
|
|
|
import reactor.core.publisher.Mono;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -53,7 +54,11 @@ public class SinglePageServiceImpl implements SinglePageService {
|
|
|
}
|
|
|
PageContent pageContent = singlePageDao.getFreePageById(id);
|
|
|
String mobileContent = singlePageDao.findMobileContent(id);
|
|
|
- pageContent.setMobileContent(mobileContent);
|
|
|
+ if (StringUtils.isEmpty(mobileContent)) {
|
|
|
+ pageContent.setMobileContent(pageContent.getContent());
|
|
|
+ } else {
|
|
|
+ pageContent.setMobileContent(mobileContent);
|
|
|
+ }
|
|
|
return pageContent;
|
|
|
}
|
|
|
|