收藏
回答

云开发-查询短信记录提示环境不存在 rid: 642fd4be-4534a152-4c66f10?

发送参数

array:8 [

  "env" => "qiju-online-7gre2mrpf6730c1d"

  "phone_number_list" => array:1 [

    0 => "+8618520015605"

  ]

  "sms_type" => "Marketing"

  "template_id" => "844110"

  "content" => "您预约的行程已被管家接单啦,电话:18520232024"

  "path" => "/jump-mp.html?path=/pages/tabBar/mine"

  "use_short_name" => true

  "resource_appid" => "wx81efd89c24c41fae"

]

服务端调用发送接口,结果如下

array:3 [

  "errcode" => 0

  "send_status_list" => array:1 [

    0 => array:5 [

      "serial_no" => "3369:289930145916808565271401560"

      "phone_number" => "+8618520015605"

      "code" => "Ok"

      "message" => "send success"

      "iso_code" => ""

    ]

  ]

  "query_id" => "d086fe2260ef438d8f94b52d1a17df35"

]

然后调用查询短信记录接口,参数如下:

array:7 [

  "EnvId" => "qiju-online-7gre2mrpf6730c1d"

  "StartDate" => "2023-04-07"

  "EndDate" => "2023-04-07"

  "Mobile" => "+8618520015605"

  "QueryId" => "d086fe2260ef438d8f94b52d1a17df35"

  "PageNumber" => 1

  "PageSize" => 1

]

返回结果:

array:2 [

  "errcode" => -601027

  "errmsg" => "环境不存在 rid: 642fd79e-7a6028a7-62691884"

]

回答关注问题邀请回答
收藏

2 个回答

  • 周公子
    周公子
    2023-04-07

    你好,请求体有问题,麻烦按这个格式:

    {
      "PostData": {
        "StartDate":"2021-03-01",
        "EndDate":"2021-03-23",
        "EnvId":"xxx",
        "QueryId":"xxx",
        "PageNumber":1,
        "PageSize":20
      }
    } 
    

    ---

    文档有些问题,我们尽快修复下。

    2023-04-07
    有用 1
    回复 1
    • 大吉大利
      大吉大利
      2023-04-07
      2023-04-07
      回复
  • NEW
    NEW
    2023-08-04

    "QueryId" => "d086fe2260ef438d8f94b52d1a17df35"这个查询ID是什么来的,有点像密匙,我用了密匙也不行,不知道你“d086fe2260ef438d8f94b52d1a17df35”这个是怎么来的

    2023-08-04
    有用
    回复
登录 后发表内容