From 808db3852741826feae7175426445afe4c587600 Mon Sep 17 00:00:00 2001 From: yin5th <541304803@qq.com> Date: Mon, 16 Jan 2023 14:58:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=9C=88=E5=BA=A6=E6=89=93=E5=8D=A1?= =?UTF-8?q?=E8=AE=B0=E5=BD=95):=20=E8=B0=83=E6=95=B4=E6=95=B0=E7=BB=84?= =?UTF-8?q?=E4=B8=8B=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/v1/User.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controller/api/v1/User.php b/app/controller/api/v1/User.php index dcaeb78..f1245fe 100644 --- a/app/controller/api/v1/User.php +++ b/app/controller/api/v1/User.php @@ -532,9 +532,9 @@ class User extends Base } } - $res['ok'] = array_unique($res['ok']); - $res['add'] = array_unique($res['add']); - $res['no'] = array_unique($res['no']); + $res['ok'] = array_values(array_unique($res['ok'])); + $res['add'] = array_values(array_unique($res['add'])); + $res['no'] = array_values(array_unique($res['no'])); } return $this->json(0, 'success', $res);