return->success(); } /** * @return array * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface * @throws RedisException */ public function address_list(): array { $deep = (int)$this->request->input('deep'); $pid = $this->request->input('pid',0); $deepList = $this->cityCache->getCityList($deep); if (in_array($deep,[CityCode::DEEP_CITY,CityCode::DEEP_PROVINCE]) && $pid != 0) { $column = 'pid'; $filteredData = array_values(array_filter($deepList, function($value) use ($column, $pid) { return $value[$column] == $pid; })); } return $this->return->success('success', ['list' => $filteredData ?? $deepList]); } }