|  | @@ -58,8 +58,11 @@ public class SoundController extends BaseController {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @RequestMapping("sendToUser")
 | 
	
		
			
				|  |  |      public HttpResponseResult sendToUser(String phone, String message) throws IOException {
 | 
	
		
			
				|  |  | +        if(!WebSocketHandler.WS_CLIENTS.containsKey(phone)){
 | 
	
		
			
				|  |  | +            return failed("未上线");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          if(!WebSocketHandler.WS_CLIENTS.get(phone).isOpen()){
 | 
	
		
			
				|  |  | -            return failed(phone+"已离线");
 | 
	
		
			
				|  |  | +            return failed("已离线");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          WebSocketHandler.WS_CLIENTS.get(phone).sendMessage(new TextMessage(message));
 | 
	
		
			
				|  |  |          return succeed();
 |