环信云客服开发
APP客服和VIP会员关系绑定表
字段名 |
字段类型 |
字段备注 |
id |
int(11) |
|
kf_id |
int(11) |
客服ID |
member_id |
int(11) |
用户ID |
create_time |
timestamp |
日期 |
create table `fcxlt_kf_member` (
`id` int(11) not null auto_increment,
`kf_id` int(11) not null,
`member_id` int(11) not null,
`crete_time` timestamp default current_timestamp,
primary key (`id`),
key `member_id` (`member_id`)
) engine = innodb auto_increment=1 default charset=utf8mb4 comment='客服关系对应表';
客服值班设置APP会员咨询客服类别表
字段名 |
字段类型 |
字段备注 |
id |
int(11) |
|
member_id |
int(11) |
执行切换会员ID |
type |
char(1) |
1切换KF, 2无 |
easemob_member_id |
int(11) |
被切换的KF |
create_time |
timestamp |
操作时间 |
create table `fcxlt_kf_onduty` (
`id` int(11) not null auto_increment,
`member_id` int(11) not null comment '执行切换会员ID',
`type` char(1) not null comment '1切换KF, 2无',
`crete_time` timestamp default current_timestamp,
`easemob_member_id` int(11) not null default 0,
primary key (`id`),
key `member_id` (`member_id`)
) engine = innodb auto_increment=1 default charset=utf8mb4 comment='客服值班记录表';
APP客服和环信客服关系对应表
字段名 |
字段类型 |
字段备注 |
id |
int(11) |
|
kf_member_id |
int(11) |
客服APP会员id |
hx_agent_name |
varchar(100) |
环信账号 |
create_time |
timestamp |
添加时间 |
create table `fcxlt_kf_easemob` (
`id` int(11) not null auto_increment,
`kf_member_id` int(11) not null,
`hx_agent_name` varchar(100) not null,
`create_time` timestamp default current_timestamp,
primary key (`id`)
) engine=innodb auto_increment=1 default charset=utf8mb4 comment '环信对应客服表';
前端客服取值判断:
前端APP会员分配客服方式,按照客服-会员关系表或按照客服值班表最新一次设置
字段名 |
字段类型 |
字段备注 |
id |
int(11) |
|
type |
char(1) |
1 按照关系对应表,2 取值当前环信agentname |
agentname |
varchar(100) |
环信账号 |
create table `fcxlt_kf_type` (
`id` int(11) not null auto_increment,
`type` char(1) not null comment '1 按照关系对应表,2 取值当前环信agentname',
`agentname` varchar(100) not null,
primary key (`id`)
) engine=innodb auto_increment=1 default charset=utf8mb4 comment '当前客服-环信对应表';