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

微信推送图片一直不成功

WBOY
Release: 2016-06-06 20:50:42
Original
1864 people have browsed it

使用文本推送是成功的,但是推送图片一直不成功
不知道是哪里写错了,输出的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);
Copy after login

然后发送试一试?

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template