发送参数
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"
]
你好,请求体有问题,麻烦按这个格式:
{ "PostData": { "StartDate":"2021-03-01", "EndDate":"2021-03-23", "EnvId":"xxx", "QueryId":"xxx", "PageNumber":1, "PageSize":20 } }
---
文档有些问题,我们尽快修复下。
"QueryId" => "d086fe2260ef438d8f94b52d1a17df35"这个查询ID是什么来的,有点像密匙,我用了密匙也不行,不知道你“d086fe2260ef438d8f94b52d1a17df35”这个是怎么来的