|
@@ -602,7 +602,7 @@
|
|
|
userConversation: {}, //用户当前会话
|
|
userConversation: {}, //用户当前会话
|
|
|
machineAndAtl: 10, //默认为机器人,100为人工
|
|
machineAndAtl: 10, //默认为机器人,100为人工
|
|
|
satisfaction: 1, //评价满意度,1为满意,2为一般,3为不满意
|
|
satisfaction: 1, //评价满意度,1为满意,2为一般,3为不满意
|
|
|
- url: 'http://kfadmin.bocai186.com', // 域名地址
|
|
|
|
|
|
|
+ url: 'http://manage.281570.com', // 域名地址
|
|
|
// url: 'http://192.168.2.187:8090', // 域名地址
|
|
// url: 'http://192.168.2.187:8090', // 域名地址
|
|
|
user_info: '', // 用户信息
|
|
user_info: '', // 用户信息
|
|
|
// 人工客服信息
|
|
// 人工客服信息
|
|
@@ -1197,7 +1197,7 @@
|
|
|
initWebSocket() {
|
|
initWebSocket() {
|
|
|
let _this = this;
|
|
let _this = this;
|
|
|
let apiToken = this.$md5.hex_md5('customer-service' + window.location.origin);
|
|
let apiToken = this.$md5.hex_md5('customer-service' + window.location.origin);
|
|
|
- this.websock = new WebSocket('ws://kfadmin.bocai186.com:9101?apiToken=' + apiToken);
|
|
|
|
|
|
|
+ this.websock = new WebSocket('ws://ky.281570.com:9101?apiToken=' + apiToken);
|
|
|
// this.websock = new WebSocket('ws://192.168.2.187:9101?apiToken=' + apiToken);
|
|
// this.websock = new WebSocket('ws://192.168.2.187:9101?apiToken=' + apiToken);
|
|
|
this.websock.debug = true;
|
|
this.websock.debug = true;
|
|
|
// 数据接收
|
|
// 数据接收
|
|
@@ -1697,7 +1697,8 @@
|
|
|
'uid': this.user_info.id,
|
|
'uid': this.user_info.id,
|
|
|
'name': this.user_info.name,
|
|
'name': this.user_info.name,
|
|
|
'avatar': this.user_info.avatar,
|
|
'avatar': this.user_info.avatar,
|
|
|
- 'group': this.group
|
|
|
|
|
|
|
+ 'group': this.group,
|
|
|
|
|
+ 'settype':'pc'
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
this.websock.send(JSON.stringify(data));
|
|
this.websock.send(JSON.stringify(data));
|