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()}");