getDictPath() . "notice" . DIRECTORY_SEPARATOR . $data['type'] . ".php"; if (is_file($system_path)) { $template_files['app'] = $system_path; } $addons = $this->getLocalAddons(); foreach ($addons as $v) { $template_path = $this->getAddonDictPath($v) . "notice" . DIRECTORY_SEPARATOR . $data['type'] . ".php"; if (is_file($template_path)) { $template_files[$v] = $template_path; } } if ($with_addon) { $template_files_data = $this->loadFilesWithAddon($template_files); } else { $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; } }