thinkphp5 集成 easywechat 验证token的问题
首先要确定easywechat实例化都是正常的。然后按照以下步骤就可以了:
1,关闭config里面的'app_debug' => false,
2,关闭config里面的 'app_trace' => false,
3, function index()
{
$app = new Application($this->wechat_config);
$response = $app->server->serve();
$response->getContent();
}
亲自测试没有问题。