swoole_http_server下的ontask方法里面,调用Swoole\Coroutine\Redis出现,PHP Fatal error: Swoole\Coroutine\Redis::connect(): must be called in the coroutine,请问是咋回事呀?是只能在onRequest下面调用嘛?
相关分类