From b37fb81c6402c736b3f871f2ef0e9cdd69c5e5cc Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 8 Jul 2025 11:04:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E5=BC=80=E6=94=BE=E5=B9=B3=E5=8F=B0=E6=B5=8B=E8=AF=95=E4=B8=93?= =?UTF-8?q?=E7=94=A8=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../think-plugs-wechat-service/src/controller/api/Push.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/think-plugs-wechat-service/src/controller/api/Push.php b/plugin/think-plugs-wechat-service/src/controller/api/Push.php index 058d3340f..d75baa1d1 100644 --- a/plugin/think-plugs-wechat-service/src/controller/api/Push.php +++ b/plugin/think-plugs-wechat-service/src/controller/api/Push.php @@ -47,8 +47,12 @@ class Push extends Controller */ public function notify(string $appid = ''): string { + $tests = [ + 'wx570bc396a51b8ff8', 'wx9252c5e0bb1836fc', 'wx8e1097c5bc82cde9', 'wx14550af28c71a144', 'wxa35b9c23cfe664eb', // 公众号测试专用号 + 'wxd101a85aa106f53e', 'wxc39235c15087f6f3', 'wx7720d01d4b2a4500', 'wx05d483572dcd5d8b', 'wx5910277cae6fd970', // 小程序测试专用号 + ]; $appid = empty($appid) ? input('appid') : $appid; - if (in_array($appid, ['wx570bc396a51b8ff8', 'wxd101a85aa106f53e'])) { + if (in_array($appid, $tests)) { # 全网发布接口测试 return PublishHandle::instance()->handler($appid); } else {