![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
微信
PHP林一
爱音乐却学了文科的程序员
展开
-
PHP 服务器无法保证在五秒内处理并回复 可调用客服接口来异步回复(微信)
立即返回(异步执行) ignore_user_abort(true); echo 'success'; // send the response header('Connection: close'); header('Content-Length: ' . ob_get_length()); ob_end_flush(); ob_flush(); flush(); //以下为调...转载 2018-08-01 15:12:41 · 1133 阅读 · 0 评论 -
PHP 5.6+ 微信上传临时素材的问题 41005
5.6+ 不再支持@+地址 需要使用CURLFile这个方法 5.5 $data = array('media' => '@' . $filepath); 5.6 $data = array('media' => new \CURLFile($filepath)); 具体方法如下: /** * 上传临时素材 * @param string $ac...原创 2018-08-01 15:25:28 · 1018 阅读 · 0 评论