From f3b4a43b192955e5debd7dfe6b6ace09b96a22f0 Mon Sep 17 00:00:00 2001 From: gzydong <837215079@qq.com> Date: Sat, 27 Mar 2021 15:21:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/GroupService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Service/GroupService.php b/app/Service/GroupService.php index 3798301..58478c7 100644 --- a/app/Service/GroupService.php +++ b/app/Service/GroupService.php @@ -47,7 +47,7 @@ class GroupService extends BaseService ])->get(['group_id', 'not_disturb'])->keyBy('group_id')->toArray(); foreach ($items as $key => $item) { - $items[$key]['not_disturb'] = $arr[$item['id']] ? $arr[$item['id']]['not_disturb'] : 0; + $items[$key]['not_disturb'] = isset($arr[$item['id']]) ? $arr[$item['id']]['not_disturb'] : 0; } return $items;