正在显示
1 个修改的文件
包含
5 行增加
和
0 行删除
| @@ -6,6 +6,7 @@ import com.crossoverjie.cim.client.service.RouteRequest; | @@ -6,6 +6,7 @@ import com.crossoverjie.cim.client.service.RouteRequest; | ||
| 6 | import com.crossoverjie.cim.client.util.SpringBeanFactory; | 6 | import com.crossoverjie.cim.client.util.SpringBeanFactory; |
| 7 | import com.crossoverjie.cim.client.vo.req.GoogleProtocolVO; | 7 | import com.crossoverjie.cim.client.vo.req.GoogleProtocolVO; |
| 8 | import com.crossoverjie.cim.client.vo.req.GroupReqVO; | 8 | import com.crossoverjie.cim.client.vo.req.GroupReqVO; |
| 9 | +import com.crossoverjie.cim.common.util.StringUtil; | ||
| 9 | import org.slf4j.Logger; | 10 | import org.slf4j.Logger; |
| 10 | import org.slf4j.LoggerFactory; | 11 | import org.slf4j.LoggerFactory; |
| 11 | 12 | ||
| @@ -41,6 +42,10 @@ public class Scan implements Runnable { | @@ -41,6 +42,10 @@ public class Scan implements Runnable { | ||
| 41 | GoogleProtocolVO vo; | 42 | GoogleProtocolVO vo; |
| 42 | while (true) { | 43 | while (true) { |
| 43 | String msg = sc.nextLine(); | 44 | String msg = sc.nextLine(); |
| 45 | + if (StringUtil.isEmpty(msg)){ | ||
| 46 | + LOGGER.warn("不能发送空消息!"); | ||
| 47 | + continue ; | ||
| 48 | + } | ||
| 44 | 49 | ||
| 45 | //单聊 | 50 | //单聊 |
| 46 | totalMsg = msg.split("><"); | 51 | totalMsg = msg.split("><"); |
-
请 注册 或 登录 后发表评论