getDictPath() . "notice" . DIRECTORY_SEPARATOR . $data[ 'type' ] . ".php"; if (is_file($system_path)) { $template_files[] = $system_path; } $addons = (new AddonService())->getAddonKeysBySiteId(request()->siteId()); foreach ($addons as $v) { $template_path = $this->getAddonDictPath($v) . "notice" . DIRECTORY_SEPARATOR . $data[ 'type' ] . ".php"; if (is_file($template_path)) { $template_files[] = $template_path; } } $template_files_data = $this->loadFiles($template_files); $template_data_array = []; foreach ($template_files_data as $file_data) { $template_data_array = empty($template_data_array) ? $file_data : array_merge($template_data_array, $file_data); } return $template_data_array; } }