微信接收用户发的图片存储到自己的服务器后怎么返回不了消息给微信

WBOY
Release: 2016-06-06 20:49:48
Original
1521 people have browsed it

是这样的,用户关注公众号后发送自己的头像,然后将接收到的图片存储到自己的服务器,告诉用户图片上传成功啦,但是现在返回不了信息,不知道为什么? 上传微信图片用的是fopen,fread,fclose,download($PicUrl,{$uid}.jpg"); 然后 $contentStr = "上传好啦"; $resultStr = sprintf($textTpl, $fromUsername, $toUsername, $time, $msgType, $contentStr); echo $resultStr; echo没有输出,又不能本地调试,咋办呢?

回复内容:

是这样的,用户关注公众号后发送自己的头像,然后将接收到的图片存储到自己的服务器,告诉用户图片上传成功啦,但是现在返回不了信息,不知道为什么? 上传微信图片用的是fopen,fread,fclose,download($PicUrl,{$uid}.jpg"); 然后 $contentStr = "上传好啦"; $resultStr = sprintf($textTpl, $fromUsername, $toUsername, $time, $msgType, $contentStr); echo $resultStr; echo没有输出,又不能本地调试,咋办呢?

利用自动回复? 会不会是超过了5s?

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