ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
1.发送数据为json字符串,如下所示: {"type":"login_group","group_id":1,"time":"2018-08-21 14:27:41,"page":1}; 返回数据为json字符串,如下所示: {"type":"login_group","data":{"group_id":1,"time":"2018-08-21 14:27:41,"page":1}}; 2.解释说明: type:消息类型, group_id:群id, page:页码(一页为10条数据), from_id:本身user_id, to_id:对方user_id(被发送者), group_nick_name:群昵称,from_nick_name:本身昵称,to_nick_name:对方昵称, group_head_url:群头像路径,from_head_url:本身头像路径,to_head_url:对方头像路径, time:消息创建时间(本身), latest_time:本身退出时看到的最后一条消息创建时间, content:消息内容(本身), latest_content:本身退出时看到的最后一条消息内容, 3.消息类型 type=login_group时, 发送数据为: type , from_id,group_id, latest_time, page 返回数据为:type,user_id,nick_name,head_url,content,time type=login_user时, 发送数据为:type ,from_id ,to_id , latest_time,page 返回数据为:type,user_id,nick_name,head_url,content,time type=say_group时, 发送数据为:type ,from_id,group_id,from_nick_name,from_head_url,content,time 返回数据为:type,user_id,nick_name,head_url,content,time 格式为:{"type":"say_group","group_id":1,"time":"2018-08-21 14:27:41,"page":1}; type=say_user时, 发送数据为:type , from_id ,to_id,from_nick_name,from_head_url,content,time 返回数据为:type,user_id,nick_name,head_url,content,time 格式为:{"type":"say_user","group_id":1,"time":"2018-08-21 14:27:41,"page":1}; type=logout_group时(可以用post发送: http://txsh.nineopen.com:8000/api/logout_group ) 发送数据为:user_id,group_id,group_nick_name,group_head_url,latest_content,latest_time 返回值:success(成功)error(失败) type=logout_user时,(可以用post发送: http://txsh.nineopen.com:8000/api/logout_user ) 发送数据为:from_id,to_id,to_nick_name,to_head_url,to_industry,latest_content,latest_time 返回值:success(成功)error(失败) type=ping时, 发送数据为:{"type":"ping"} 返回数据为:无