|
|
@@ -496,8 +496,8 @@ public class _ContentController extends JBaseCRUDController<Content> {
|
|
|
if (content.getThumbnail() == null) {
|
|
|
imageUrl = null;
|
|
|
}
|
|
|
- if (content.getThumbnail() == null) {
|
|
|
- iconUrl = null;
|
|
|
+ if (content.getSmallThumbnail() == null) {
|
|
|
+ iconUrl = imageUrl;
|
|
|
}
|
|
|
if (content.getUrl() == null) {
|
|
|
linkUrl = null;
|
|
|
@@ -510,8 +510,12 @@ public class _ContentController extends JBaseCRUDController<Content> {
|
|
|
String url = "http://113.105.74.140:8092/user/pushToAll?fromUserId=10000&body="+body;
|
|
|
|
|
|
try {
|
|
|
- String response = HttpUtils.post(url);
|
|
|
- result = "软文推送成功";
|
|
|
+ if (imageUrl == null) {
|
|
|
+ result = "软文推送失败,请选择一张图片";
|
|
|
+ } else {
|
|
|
+ String response = HttpUtils.post(url);
|
|
|
+ result = "软文推送成功";
|
|
|
+ }
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
result = "软文推送失败,联系管理员检查接口";
|