luke 6 жил өмнө
parent
commit
05c2a05d1c

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

@@ -557,8 +557,8 @@
 				userConversation: {}, //用户当前会话
 				machineAndAtl: 10, //默认为机器人,100为人工
 				satisfaction: 1, //评价满意度,1为满意,2为一般,3为不满意
-				// url: 'http://kfadmin.bocai186.com', // 域名地址
-				url: 'http://192.168.2.187:8090', // 域名地址
+				url: 'http://kfadmin.bocai186.com', // 域名地址
+				// url: 'http://192.168.2.187:8090', // 域名地址
 				user_info: '', // 用户信息
 				// 人工客服信息
 				service: '',
@@ -967,8 +967,8 @@
 			initWebSocket() {
 				let _this = this;
 				let apiToken = this.$md5.hex_md5('customer-service' + this.currTime + window.location.origin);
-				// this.websock = new WebSocket('ws://103.108.43.176:9101?apiToken=' + apiToken);
-				this.websock = new WebSocket('ws://192.168.2.187:9101?apiToken=' + apiToken);
+				this.websock = new WebSocket('ws://103.108.43.176:9101?apiToken=' + apiToken);
+				// this.websock = new WebSocket('ws://192.168.2.187:9101?apiToken=' + apiToken);
 				this.websock.debug = true;
 				// 数据接收
 				this.websock.onmessage = this.websocketonmessage;