From 6197f692ec8ba628016e043c66b266a61dad5902 Mon Sep 17 00:00:00 2001 From: Anyon Date: Sat, 21 Dec 2019 16:30:37 +0800 Subject: [PATCH] Update Push.php --- app/wechat/controller/api/Push.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/wechat/controller/api/Push.php b/app/wechat/controller/api/Push.php index ba3d10c80..e14bdc1fa 100644 --- a/app/wechat/controller/api/Push.php +++ b/app/wechat/controller/api/Push.php @@ -115,7 +115,7 @@ class Push extends Controller $this->fromOpenid = $this->receive['tousername']; // text, event, image, location if (method_exists($this, ($method = $this->receive['msgtype']))) { - if (is_string(($result = $this->$method()))) return $result; + if (is_string($result = $this->$method())) return $result; } } catch (\Exception $e) { $this->app->log->error("{$e->getLine()} [{$e->getCode()}] {$e->getMessage()}");