From 219b4c26de292dd6b2f7b11e53985c1332cb602d Mon Sep 17 00:00:00 2001 From: gzydong <837215079@qq.com> Date: Tue, 1 Dec 2020 13:54:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Helper/PushMessageHelper.php | 57 -------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 app/Helper/PushMessageHelper.php diff --git a/app/Helper/PushMessageHelper.php b/app/Helper/PushMessageHelper.php deleted file mode 100644 index e5293c0..0000000 --- a/app/Helper/PushMessageHelper.php +++ /dev/null @@ -1,57 +0,0 @@ -first(['nickname', 'avatar']); - if ($info) { - $data['nickname'] = $info->nickname; - $data['avatar'] = $info->avatar; - } - } - } - - $arr = [ - "id" => 0, - "source" => 1, - "msg_type" => 1, - "user_id" => 0, - "receive_id" => 0, - "content" => '', - "is_revoke" => 0, - - // 发送消息人的信息 - "nickname" => "", - "avatar" => "", - - // 不同的消息类型 - "file" => [], - "code_block" => [], - "forward" => [], - "invite" => [], - - "created_at" => "", - ]; - - return array_merge($arr, array_intersect_key($data, $arr)); - } -}