微信公众平台后台响应慢怎样回复空串后调用客服接口

WBOY
Release: 2016-06-06 20:38:18
Original
1401 people have browsed it

这个空串的格式是什么?是 public function responseTextcs()
{
echo "";
return "";
}
这种格式吗,为什么还会重复发微信请求

回复内容:

这个空串的格式是什么?是 public function responseTextcs()
{
echo "";
return "";
}
这种格式吗,为什么还会重复发微信请求

就应该这样写。。。调用客服接口请看多客服。。

这个问题没人回复吗。
我遇到也是这样的问题,我补充下,因为
echo ""之后,还有其他业务处理,比如DB的操作,有可能会导致延迟,我的理解是因为Php的单线程的缘故。所以解决方案是使用异步方案。但是php本身貌似又没有比较好的异步方案能处理这种事

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!