|
|
@@ -107,9 +107,8 @@ public class MessageServiceImpl implements MessageService {
|
|
|
public Map<String, Object> sendMessage(String consumerApp) {
|
|
|
JSONObject consumer = FastjsonUtils.parseObject(consumerApp);
|
|
|
Object consumerAppObj = consumer.get("consumerApp");
|
|
|
- App consumerAppExists = new App();
|
|
|
if (consumerAppObj != null && !StringUtils.isEmpty(String.valueOf(consumerAppObj))) {
|
|
|
- consumerAppExists = appDao.findByName(String.valueOf(consumerAppObj));
|
|
|
+ App consumerAppExists = appDao.findByName(String.valueOf(consumerAppObj));
|
|
|
if (consumerAppExists == null) {
|
|
|
throw new IllegalOperatorException("接收应用不存在");
|
|
|
}
|