文档
测试

发送消息

POST
/api/chat/add

请求头

参数名
类型
描述
必填
Content-Type
string
application/json
必填
token
string
必填

请求参数

参数名
类型
描述
必填
send_id
int
对方id
必填
content
string
内容
必填
type
类型
类型:0=文本,1=礼物,2=时间线 默认0
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
msg
string
示例:发送成功
必填
time
string
示例:1599104769
必填
data
object
数据字典
必填
type
string
示例:类型:0=文本,1=礼物,2=时间线
必填
time
string
示例:时间戳
必填
content
string
示例:消息
必填
id
string
示例:消息id
必填
is_timeline
int
是否包含时间线 1是 0否 默认0
必填
level_img
string
我的会员图标
必填
other_content
string
发给对方的消息
必填

说明 / 示例

@惠惠 单对单聊天拉黑注意 (接口已调整,与客户端无关) 1.若是有关系可以进入聊天界面,可看到以前发的信息,但不可发新消息 2.若没有过关系,拉黑的不能建立关系