前几天还用的好好的,没动东西,今天使用一直报:该公众号提供的服务出现故障,请稍后重试 ?
我把所有的代码逻辑都删除了,直接返回,还是报错
时间: 2025-03-03 12:32:34
内容: 微信服务器向公众号推送消息或事件后,得到的回应不合法
次数: 5分钟 63次
错误样例: [OpenID=oTFlz6GnYvlSVpVQ01XYs9-YDMAM][Stamp=1740976354][OuterIP=][3rdUrl=http://ltx.dev.sdsnwl.com/wechat_q][IP=47.103.94.62][MsgType=20000][Event=Scan QRCode][http code=419]
报警排查指引,请见: https://mmbizurl.cn/s/MpkaZb8yg
public function serve()
{
Log::channel('wechat')->info(json_encode('触发成功'));
$this->config = config('wechat.official_account');
$this->wx = Factory::officialAccount($this->config);
$this->wx->server->push(function ($message) {
return "欢迎关注 overtrue!";
});
$response = $this->wx->server->serve();
return $response;
}
