diff --git a/common/logic/Push.php b/common/logic/Push.php index 2b03780..be6f9f2 100644 --- a/common/logic/Push.php +++ b/common/logic/Push.php @@ -19,6 +19,9 @@ class Push */ public function trigger($user, $request = [], $response = []) { + if (!$user) { + return; + } $app = model\WokChatApp::where('id', $user['app_id'])->find(); if (!$app || !$app['push_url']) {