Skip to content

发送消息失败 #34

@lifenglsf

Description

@lifenglsf

php代码

     $RongSDK = new RongCloud('xxx', 'xxx');
    $rr = $RongSDK->_message->Person()->send([
        'senderId'=> 'ujadk90ha',//发送人 id
        'targetId'=> 'markoiwm',//接收人 id
        "objectName"=>'RC:TxtMsg',//消息类型 文本
        'content'=>['content'=>'你好,小明']//消息体
    ]);
        Utils::dump("发送消息", $rr);

返回的结果:
image
更改sdk中的send方法添加content-type json,返回结果为:
image
完全无从下手了。
ps.使用curl单独写了调用的接口,发现不管发送的参数是json_encode,数组,http_build_query都不行

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions