Commit 4480c52c authored by 734642908@qq.com's avatar 734642908@qq.com

修改文档说明

parent cf2aff6a
...@@ -32,4 +32,20 @@ a:操作方法 m:模块名称 d:请求数据 ...@@ -32,4 +32,20 @@ a:操作方法 m:模块名称 d:请求数据
c:状态码 msg:状态描述 d:数据内容 c:状态码 msg:状态描述 d:数据内容
http测试地址:http://193.112.57.224:9501/ http测试地址:http://193.112.57.224:9501/
websocket测试地址:ws://193.112.57.224:9501/
\ No newline at end of file websocket测试地址:ws://193.112.57.224:9501/
#绑定用户uid:
{"a":"set_info","m":"user","d":{"token":"xxxxx"}}
{"c":1,"msg":"保存成功"}
#获取现在人数:
{"a":"online_num","m":"user"}
{"c":1,"msg":"success","d":{"num":1}}
#给用户发送消息:
{"a":"send_msg","m":"user","d":{"to_uid":"91851043","from_uid":"56032607","content":"hello"}}
{"c":1,"msg":"发送成功"}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment