Commit f86fc643 authored by clone's avatar clone

bug

parent d8f85518
......@@ -21,27 +21,11 @@ class RPush
*/
public function sendRequestByCurl($target_type, $target, $msg, $from ,$accessToken)
{
/**
* { wenzi
* "target_type" : "users", // users 给用户发消息。chatgroups: 给群发消息,chatrooms: 给聊天室发消息
* "target" : ["u1", "u2", "u3"], // 注意这里需要用数组,数组长度建议不大于20,即使只有一个用户,
* // 也要用数组 ['u1'],给用户发送时数组元素是用户名,给群组发送时
* // 数组元素是groupid
* "msg" : {
* "type" : "txt",
* "msg" : "hello from rest" //消息内容,参考[[start:100serverintegration:30chatlog|聊天记录]]里的bodies内容
* },
* "from" : "jma2" //表示消息发送者。无此字段Server会默认设置为"from":"admin",有from字段但值为空串("")时请求失败
* }
*
*
*{
* "target_type" : "users", //users 给用户发消息。chatgroups: 给群发消息,chatrooms: 给聊天室发消息
* "target" : ["u1", "u2", "u3"],// 注意这里需要用数组,数组长度建议不大于20,即使只有一个用户,
* // 也要用数组 ['u1'],给用户发送时数组元素是用户名,给群组发送时
* // 数组元素是groupid
* "msg" : { //消息内容
* "type" : "img", // 消息类型
* "url": "https://a1.easemob.com/easemob-demo/chatdemoui/chatfiles/55f12940-64af-11e4-8a5b-ff2336f03252", //成功上传文件返回的UUID
......@@ -52,10 +36,6 @@ class RPush
* "height" : 720
* }
* },
* "from" : "jma2" //表示消息发送者,无此字段Server会默认设置为"from":"admin",有from字段但值为空串("")时请求失败
* }
*
*
*/
$arr = array(
......
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