正在显示
1 个修改的文件
包含
0 行增加
和
25 行删除
| @@ -3,8 +3,6 @@ package com.crossoverjie.cim.client.scanner; | @@ -3,8 +3,6 @@ package com.crossoverjie.cim.client.scanner; | ||
| 3 | import com.crossoverjie.cim.client.config.AppConfiguration; | 3 | import com.crossoverjie.cim.client.config.AppConfiguration; |
| 4 | import com.crossoverjie.cim.client.service.MsgHandle; | 4 | import com.crossoverjie.cim.client.service.MsgHandle; |
| 5 | import com.crossoverjie.cim.client.util.SpringBeanFactory; | 5 | import com.crossoverjie.cim.client.util.SpringBeanFactory; |
| 6 | -import com.crossoverjie.cim.client.vo.req.GroupReqVO; | ||
| 7 | -import com.crossoverjie.cim.client.vo.req.P2PReqVO; | ||
| 8 | import org.slf4j.Logger; | 6 | import org.slf4j.Logger; |
| 9 | import org.slf4j.LoggerFactory; | 7 | import org.slf4j.LoggerFactory; |
| 10 | 8 | ||
| @@ -36,7 +34,6 @@ public class Scan implements Runnable { | @@ -36,7 +34,6 @@ public class Scan implements Runnable { | ||
| 36 | @Override | 34 | @Override |
| 37 | public void run() { | 35 | public void run() { |
| 38 | Scanner sc = new Scanner(System.in); | 36 | Scanner sc = new Scanner(System.in); |
| 39 | - String[] totalMsg; | ||
| 40 | while (true) { | 37 | while (true) { |
| 41 | String msg = sc.nextLine(); | 38 | String msg = sc.nextLine(); |
| 42 | 39 | ||
| @@ -58,26 +55,4 @@ public class Scan implements Runnable { | @@ -58,26 +55,4 @@ public class Scan implements Runnable { | ||
| 58 | } | 55 | } |
| 59 | } | 56 | } |
| 60 | 57 | ||
| 61 | - | ||
| 62 | - private void p2pChat(String[] totalMsg) { | ||
| 63 | - P2PReqVO p2PReqVO = new P2PReqVO(); | ||
| 64 | - p2PReqVO.setUserId(configuration.getUserId()); | ||
| 65 | - p2PReqVO.setReceiveUserId(Long.parseLong(totalMsg[0])); | ||
| 66 | - p2PReqVO.setMsg(totalMsg[1]); | ||
| 67 | - try { | ||
| 68 | - msgHandle.p2pChat(p2PReqVO); | ||
| 69 | - } catch (Exception e) { | ||
| 70 | - LOGGER.error("Exception", e); | ||
| 71 | - } | ||
| 72 | - } | ||
| 73 | - | ||
| 74 | - private void groupChat(String msg) { | ||
| 75 | - GroupReqVO groupReqVO = new GroupReqVO(configuration.getUserId(), msg); | ||
| 76 | - try { | ||
| 77 | - msgHandle.groupChat(groupReqVO); | ||
| 78 | - } catch (Exception e) { | ||
| 79 | - LOGGER.error("Exception", e); | ||
| 80 | - } | ||
| 81 | - } | ||
| 82 | - | ||
| 83 | } | 58 | } |
-
请 注册 或 登录 后发表评论