fix(月度打卡记录): 调整数组下标

master
yin5th 2023-01-16 14:58:44 +08:00
parent 2c7ed3de1a
commit 808db38527
1 changed files with 3 additions and 3 deletions

View File

@ -532,9 +532,9 @@ class User extends Base
} }
} }
$res['ok'] = array_unique($res['ok']); $res['ok'] = array_values(array_unique($res['ok']));
$res['add'] = array_unique($res['add']); $res['add'] = array_values(array_unique($res['add']));
$res['no'] = array_unique($res['no']); $res['no'] = array_values(array_unique($res['no']));
} }
return $this->json(0, 'success', $res); return $this->json(0, 'success', $res);