|  |  |  | @ -1,5 +1,6 @@ | 
			
		
	
		
			
				
					|  |  |  |  | package com.glxp.sale.admin.socket.client; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | import cn.hutool.core.thread.ThreadUtil; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.sale.admin.constant.SocketMsgType; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.sale.admin.service.param.SystemParamConfigService; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.sale.admin.thread.HeartTaskService; | 
			
		
	
	
		
			
				
					|  |  |  | @ -29,6 +30,8 @@ public class WebSocketComponent implements CommandLineRunner { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     @Override | 
			
		
	
		
			
				
					|  |  |  |  |     public void run(String... args) throws Exception { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         ThreadUtil.execAsync(() -> { | 
			
		
	
		
			
				
					|  |  |  |  |                     String ip = systemParamConfigService.selectValueByParamKey("upper_server_ip"); | 
			
		
	
		
			
				
					|  |  |  |  |                     ip = ip.replace("http://", ""); | 
			
		
	
		
			
				
					|  |  |  |  |                     try { | 
			
		
	
	
		
			
				
					|  |  |  | @ -58,6 +61,10 @@ public class WebSocketComponent implements CommandLineRunner { | 
			
		
	
		
			
				
					|  |  |  |  |                         e.printStackTrace(); | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  |         ); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     public void initConnect(SpsWebSocketClient client) { | 
			
		
	
		
			
				
					|  |  |  |  |         if (client == null && client.isOpen()) { | 
			
		
	
	
		
			
				
					|  |  |  | 
 |