def create_conversation(thumb,id):
data = {“thumb”:SSIMAGE_CDN_URL + thumb,“attr”:{‘isGroup’:True},“name”: ‘activity_’ + str(id), “m”: [“soundlife”]}
headers = {“X-LC-Id”: CleanCloud.appid, “X-LC-Key”: CleanCloud.appkey, “Content-Type”: “application/json”}
res = requests.post(CleanCloud.appurl, json=data, headers=headers)
return res.json()
后端用python 创建一个聊天室以后
前端js查询该roomId得不到 messages 字段
rt.conv('roomid',function(response){
response(这个json里面没有messages字段)
})
但是我通过js 的sdk 创建的 即时聊天 却有messages 字段,求解。
-
创建时间
16年3月7日
-
最后回复
16年4月12日
-
7
回复
-
1.3K
浏览
-
2
用户
-
1
链接