$start = 0; $step = 100; $limit = count($kdtIdArr); $team = []; while($start < $limit){ $ids = array_slice($kdtIdArr, $start, $step); $team[] = $this->model->getTeamList($adminId, $ids, $page, $type, $perpage); $start += $step; } $teams = empty($team) ? [] : call_user_func_array('array_merge', $team);
数据条数过大时,分片采集
最新推荐文章于 2024-04-26 11:00:34 发布