Browse Source

删除无效代码

wangyc 8 years ago
parent
commit
83727d9af8

+ 1 - 2
src/main/java/com/uas/ps/message/service/impl/MessageServiceImpl.java

@@ -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("接收应用不存在");
             }