ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
+++ post:v001/Gifts/starSend *int:udid#用户ID *varchar:token#Token *varchar:channel#房间ID *int:amount#发送数量 *int:gid#礼物ID <<< 请求成功 { "data": { "message": "已送出1个Iphone7p", "list": [ { "uid": 22, "u_nickname": "若璃22" } ], "gift": { "list": [ { "gid": 1, "g_name": "Iphone7p", "g_sponsor": "淘宝", "g_amount": 2 } ] } }, "code": 200, "token": null, "time": 1488888888, "content": { "udid": "1", "token": "c48a6b7421145f32102a1dd208a2980a214d94e7", "channel": "14888888888888", "amount": "3", "gid": "2" } } <<< 登录失效 { "data": { "message": "请先重新登录" }, "code": 300, "token": null, "time": 1488888888, "content": { "udid": "1", "token": "c48a6b7421145f32102a1dd208a2980a214d94e7", "channel": "14888888888888", "amount": "3", "gid": "2" } } <<< 赠送失效 { "data": { "message": "您所剩的礼品数量不足" }, "code": 400, "token": null, "time": 1488888888, "content": { "udid": "1", "token": "c48a6b7421145f32102a1dd208a2980a214d94e7", "channel": "14888888888888", "amount": "3", "gid": "2" } } <<< 没有用户 { "data": { "message": "当前房间内没有用户", "code": 400, "gift": { "list": [ { "gid": 1, "g_name": "Iphone7p", "g_sponsor": "淘宝", "g_amount": 3 } ] } }, "code": 400, "token": null, "time": 1488888888, "content": { "udid": "1", "token": "c48a6b7421145f32102a1dd208a2980a214d94e7", "channel": "14888888888888", "amount": "3", "gid": "2" } } <<< 非法请求 { "data": { "message": "请求错误" }, "code": 500, "token": null, "time": 1488888888, "content": { "udid": "1", "token": "c48a6b7421145f32102a1dd208a2980a214d94e7", "channel": "14888888888888", "amount": "3", "gid": "2" } } +++ #### 请求成功 data[]返回数据说明 | 字段名 | 描述 | 备注 | | --- | --- | --- | | gift | 礼物列表 | | | message | 提示信息 | | #### gift[]返回数据说明 | 字段名 | 描述 | 备注 | | --- | --- | --- | | g_id | 礼物ID | | | g_name | 名称 | | | g_sponsor | 供货方 | | | g_amount | 总数 | | | g_use | 已用数 | |