From dd6c77bd13a3f9b74c72722c3161808258d350bd Mon Sep 17 00:00:00 2001 From: Anyon Date: Sun, 11 Oct 2020 16:27:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20reply#text:=20=E5=9B=9E?= =?UTF-8?q?=E5=A4=8D=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/wechat/controller/api/Push.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/wechat/controller/api/Push.php b/app/wechat/controller/api/Push.php index 9a4c309b3..1dd2080c0 100644 --- a/app/wechat/controller/api/Push.php +++ b/app/wechat/controller/api/Push.php @@ -196,6 +196,10 @@ class Push extends Controller */ private function _keys(string $rule, bool $last = false, bool $custom = false) { + if (stripos($rule, 'reply#text:') === 0) { + [, $content] = explode('#text:', $rule); + return $this->_buildMessage('text', ['Content' => $content]); + } [$table, $field, $value] = explode('#', $rule . '##'); $data = $this->app->db->name($table)->where([$field => $value])->find(); if (empty($data['type']) || (array_key_exists('status', $data) && empty($data['status']))) {