一维数组
array_unique()
二维数组
$uniqueList = [];foreach ($List as $k => $v) {if (!isset($uniqueList[$v['_id']])) { $uniqueList[$v['_id']] = $v; } } $uniqueList = array_values($uniqueList);