|
@@ -110,7 +110,7 @@ public class MessageServiceImpl implements MessageService {
|
|
|
App consumerAppExists = new App();
|
|
App consumerAppExists = new App();
|
|
|
if (consumerAppObj != null && !StringUtils.isEmpty(String.valueOf(consumerAppObj))) {
|
|
if (consumerAppObj != null && !StringUtils.isEmpty(String.valueOf(consumerAppObj))) {
|
|
|
consumerAppExists = appDao.findByName(String.valueOf(consumerAppObj));
|
|
consumerAppExists = appDao.findByName(String.valueOf(consumerAppObj));
|
|
|
- if (consumerAppExists.getId() == null) {
|
|
|
|
|
|
|
+ if (consumerAppExists == null) {
|
|
|
throw new IllegalOperatorException("接收应用不存在");
|
|
throw new IllegalOperatorException("接收应用不存在");
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
@@ -122,6 +122,7 @@ public class MessageServiceImpl implements MessageService {
|
|
|
Constant.NO, Constant.NO);
|
|
Constant.NO, Constant.NO);
|
|
|
|
|
|
|
|
Map<String, Object> resultMap = sendMessageByAPI(messages, consumerApp);
|
|
Map<String, Object> resultMap = sendMessageByAPI(messages, consumerApp);
|
|
|
|
|
+ resultMap.put("success", "success");
|
|
|
return resultMap;
|
|
return resultMap;
|
|
|
}
|
|
}
|
|
|
|
|
|