fix(AI资源广场): 修正zip组件方法调用

This commit is contained in:
otto 2026-06-01 09:49:49 +08:00
parent a5e2efe2df
commit e98663e87b
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ public class AiResourceParseServiceImpl implements IAiResourceParseService {
List<FileTreeNode> fileTreeNodes = new ArrayList<>();
// 第一遍遍历收集所有一级和二级目录下的 SKILL.md 路径
while ((entry = zais.getNextZipEntry()) != null) {
while ((entry = zais.getNextEntry()) != null) {
String entryName = entry.getName();
if (entry.isDirectory()) {
continue;
@ -111,7 +111,7 @@ public class AiResourceParseServiceImpl implements IAiResourceParseService {
try (ZipArchiveInputStream zais2 = new ZipArchiveInputStream(zipFile.getInputStream(), "GBK", true)) {
ZipArchiveEntry entry2;
skillMdContent = null;
while ((entry2 = zais2.getNextZipEntry()) != null) {
while ((entry2 = zais2.getNextEntry()) != null) {
if (targetSkillMdPath.equals(entry2.getName())) {
skillMdContent = readEntryContent(zais2);
break;