Closed
Description
Token验证失败:
必须添加ob_end_clean(); //必须清空缓冲区
这样微信才能通过。。。
不知道什么原因????
public function serve()
{
Log::info('request arrived.'); # 注意:Log 为 Laravel 组件,所以它记的日志去 Laravel 日志看,而不是 EasyWeChat 日志
$app = app('wechat.official_account');
$app->server->push(function($message){
return "欢迎关注普育吧!";
});
ob_end_clean(); //必须清空缓冲区
return $app->server->serve();
}
Activity
chjw8016 commentedon Jul 12, 2019
如果配置了laravel-debugbar,也会导致Token验证失败
tkwong94 commentedon Jul 12, 2019
except
array inside debugbar config file (debugbar.php)