https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Receiving_standard_messages.html
获取用户发送过来的视频的MediaId,再通过该视频的MediaId把视频发送给用户,为什么公众号上显示“该公众号提供的服务出现故障,请稍后再试”,发送的参数已经根据文档的格式填写。
下面是接收的参数
Array(
[data] => Array(
[ToUserName] => gh_7771708b79ad
[FromUserName] => oo-KM5277XBlWWFbrk1Y1e8o5KQs
[CreateTime] => 1661585632
[MsgType] => video
[MediaId] => vTGx4hJHrHOA0mhqUwPcEbeEygKfYcqUnTw13rgzWUlhTFXySAxm9Llp9cFtZMzth1H2YKX3EHdppO0WlBtZUQ
[ThumbMediaId] => vTGx4hJHrHOA0mhqUwPcEY9V-c-vNIynHzRcDb0anPDu470Bl8aJB3UsWGAXlyPz
[MsgId] => 23788185749794471
)
[err_code] => 0
)
下面是发送的参数
<?xml version="1.0" encoding="UTF-8"?>
<xml>
<ToUserName>oo-KM5277XBlWWFbrk1Y1e8o5KQs</ToUserName>
<FromUserName>gh_7771708b79ad</FromUserName>
<CreateTime>1661585629</CreateTime>
<MsgType>video</MsgType>
<Video>
<MediaId>vTGx4hJHrHOA0mhqUwPcEbeEygKfYcqUnTw13rgzWUlhTFXySAxm9Llp9cFtZMzth1H2YKX3EHdppO0WlBtZUQ</MediaId>
<Title>11</Title>
<Description>22</Description>
</Video>
</xml>