Home >Backend Development >PHP Tutorial >微信推送图片一直不成功

微信推送图片一直不成功

WBOY
WBOYOriginal
2016-06-06 20:50:421861browse

使用文本推送是成功的,但是推送图片一直不成功
不知道是哪里写错了,输出的xml



1362215301


1234567890123456

回复内容:

使用文本推送是成功的,但是推送图片一直不成功
不知道是哪里写错了,输出的xml



1362215301


1234567890123456

$textTpl = "
<xml>
<tousername></tousername>
<fromusername></fromusername>
<createtime>%s</createtime>
<msgtype></msgtype>
<content></content>
<articlecount>1</articlecount>
<articles>
<item>
<title></title>
<discription></discription>
<picurl></picurl>
<url></url>
</item>
</articles>
<funcflag>0</funcflag>
</xml>";  
$resultStr = sprintf($textTpl, $fromUsername, $toUsername, $result['dateline'], "news",  $title , $content , $picurl , $uri);

然后发送试一试?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn