webman中EasyWechat在非http请求下使用问题 Call to a member function get() on null

咸鱼.php

队列中调用EasyWechat,Call to a member function get() on null 在controller中通过http请求访问正常

截图

截图

截图

826 2 0
2个回答

nitron

队列里拿不到request的,跟Http不是一个进程

xiuwang

非http请求下,那么意味着$request->get() $request->post() $request->cookie() $request->rawBody() 都是空啊,
直接

$symfonyRequest = new Request([],[],[],[],[],[],''); 

就好了啊

年代过于久远,无法发表回答
🔝