xiang 6 years ago
parent
commit
6061adcc2d

+ 3 - 3
chat/index.html

@@ -15,10 +15,10 @@
 	<!--<link rel ="shortcut icon" type="image/x-icon" href="static/logo.gif"> -->
 	<title>智能客服系统</title>
 </head>
-<!-- <script src="./url_config.js"></script> -->
+<script src="./url_config.js"></script>
 <script>
-	window.url_https_ajax = 'https://manage.281570.com';
-	window.url_https_wss = 'link.281570.com';
+	// window.url_https_ajax = 'https://manage.281570.com';
+	// window.url_https_wss = 'link.281570.com';
 </script>
 <body>
 <div id="app"></div>

+ 1 - 1
chat/src/components/index.vue

@@ -1002,7 +1002,7 @@
 					this.serverTimeoutObj = setTimeout(() => {
 						// console.log('------close-------')
 						this.websock.close(); //如果 4秒之后我们没有收到 后台返回的心跳检测数据 断开socket,断开后会启动重连机制
-					}, 40000);
+					}, 4000);
 				}, this.timeout)
 			},
 

+ 3 - 3
pc_chat/index.html

@@ -8,11 +8,11 @@
 	<!-- <link rel ="shortcut icon" type="image/x-icon" href="static/logo.gif">-->
 	<title>智能客服系统</title>
 </head>
-<!-- <script src="./url_config.js"></script> -->
-<script>
+<script src="./url_config.js"></script>
+<!-- <script>
 	window.url_https_ajax = 'https://manage.281570.com';
 	window.url_https_wss = 'link.281570.com';
-</script>
+</script> -->
 <body>
 <div id="app"></div>
 <!-- built files will be auto injected -->

+ 1 - 1
pc_chat/src/components/chat.vue

@@ -1623,7 +1623,7 @@
 						// console.log('------心跳检测close-------')
 						this.websock.close(); //如果 5秒之后我们没有收到 后台返回的心跳检测数据 断开socket,断开后会启动重连机制
 
-					}, 40000);
+					}, 4000);
 				}, this.timeout)
 			},
 

+ 3 - 2
service/index.html

@@ -8,8 +8,9 @@
   </head>
   <!-- <script src="./url_config.js"></script> -->
   <script>
-      window.url_https_ajax = 'https://manage.281570.com';
-      window.url_https_wss = 'link.281570.com';
+
+      window.url_https_ajax ='https://kefudabo99admin.daboserver.com';
+      window.url_https_wss = 'kefudabo99ws.daboserver.com';
   </script>
   <body>
     <div id="app"></div>

+ 1 - 1
service/src/App.vue

@@ -14,7 +14,7 @@
 			return{
 				reconnectData:null,
 				lockReconnect:false,    //避免重复连接,因为onerror之后会立即触发 onclose
-				timeout:5000,          //10s一次心跳检测
+				timeout:50000,          //10s一次心跳检测
 				timeoutObj:null,
 				serverTimeoutObj:null,
 				apiToken:'',