华为云短信提示api错误代码 E000510 E200028 如下:


Array ( [http] => Array ( [method] => POST [header] => Array ( [0] => Content-Type: application/json [1] => Authorization: 
WSSE realm="SDP",profile="UsernameToken",type="Appkey" [2] => X-WSSE: UsernameToken Username="07yxhC5lKPrxllq4l3dRSynURlUQ",
PasswordDigest="MzA4MjZhZjc4NTZjMjYxN2JiY2ZhMzY1YjdjZWEwZWNlOTU3Y2RiNWNmZTFmNzVjZWY2MDcxYjUwOTRjMTk4NA==",
Nonce="5ffba3c224812",Created="2021-01-11T09:02:58Z" ) [content] => {"from":"8820123126602","statusCallback":""
,"smsContent":[{"to":["+8613681478888"],"templateId":"d09f081eeaa44cc89fc4f51cc9dd8973","templateParas":["345678"],
"signature":"\u534e\u79d1\u5b75\u5316"}]} [ignore_errors] => 1 ) [ssl] => Array ( [verify_peer] => [verify_peer_name] => ) ) 
{"result":[{"originTo":"+8613681478888","createTime":"2021-01-11T01:03:13Z"
,"from":"8820123126602","smsMsgId":"23b071fe-0143-448d-9293-dbce6501f97d_144150954",
"status":"E200028"}],"code":"E000510","description":"The SMS fails to be sent. For details, see status."}

应该为${1} 是花括号不是括号
其他错误参考下这个文档 https://support.huaweicloud.com/msgsms_faq/sms_faq_0156.html


发表评论 已发布 0

还可以输入 800 个字
 
 
打印