国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

easywechat6.x怎么回復(fù)用戶消息?

建站管家

問題描述

請教:下面這段代碼收不到微信公眾號回復(fù)用戶消息:hello,請問怎么修改?

    public function serve(Request $request){
        $config = config('socialite.wechat');
        $app = new Application($config);
        $symfony_request = new SymfonyRequest($request->get(), $request->post(), [], $request->cookie(), [], [], $request->rawBody());
        $symfony_request->headers = new HeaderBag($request->header());
        $app->setRequestFromSymfonyRequest($symfony_request);//必須替換服務(wù)端請求
        $server = $app->getServer();

        $server->addMessageListener('text', function($message) {
            return 'hello';
        });

        $response = $server->serve();
        return response($response->getBody()->getContents());
    }
403 0 0
0個回答

??