![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
swoole
i-euan
这个作者很懒,什么都没留下…
展开
-
tp6 thinkswoole 使用极光curl请求时报错
swoole_curl_setopt(): CURLOPT_HTTP_VERSION[3] is not supported最简单粗暴的方法就是把报错那行直接注释就可以了原创 2021-07-31 15:58:38 · 1025 阅读 · 0 评论 -
think-swoole tp6 easywechat 支付回调出现 Invalid request XML.
vendor/overtrue/wechat/src/Payment/Notify/Handler.php把$this->app['request']->getContent(); 改成think\facade\Request::getContent();最后重启swoole就可以了。原创 2020-08-24 16:53:58 · 2683 阅读 · 3 评论 -
nginx反向代理swoole频繁出现502
项目使用tp6+swoole+nginx配置好nginx反向代理之后第一次请求是可以的, 但是刷新的时候就会出现502.查看日志提示swFactoryProcess_finish (ERRNO 1004): send 8200 byte failed, because connection[fd=33] is closed百度了之后没有查到解决的办法.修改了反向代理的配置后问题解决了, 把localhost改为127.0.0.1...原创 2020-08-07 15:22:07 · 1337 阅读 · 1 评论 -
tp6 think-swoole3 websocket
在项目根目录下执行:php think make:listener WebSocketEvent在swoole.php的websocket['subscribe']写入监听并开启websocket'enable' => true,'subscribe' => [ app\listener\WebSocketEvent::class],WebsocketEvent.php<?phpdeclare (strict_types = 1);namesp.原创 2020-06-02 11:27:51 · 2527 阅读 · 0 评论 -
swoole 报错 API must be called in the coroutine
转自:https://www.baidu.com/link?url=GZ7WigQ6jUh8o7cRljJyVtDCe-D9EgUamo6zoGUYItw4kllX94-ZYhCpPD9dP2oOCQTmw2pFTger81lVrRtTJ_&wd=&eqid=ffd6b56500451a6b000000035d401a06使用swoole开发项目,有些地方遇到 must be...转载 2019-07-30 18:33:08 · 10795 阅读 · 0 评论