Skip to content

Commit 9619e41

Browse files
committed
add fail
1 parent 229ce7f commit 9619e41

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

internal/logic/status.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ func (l *StatusLogic) GetFileStatus(req *types.FileStatusRequest) (*types.FileSt
4040
return redisStatus, nil
4141
}
4242

43-
// 如果没有找到记录,返回错误并说明原因
44-
return nil, fmt.Errorf("file status not found for request ID: %s, please ensure the file processing has been initiated", requestId)
43+
// 如果没有找到记录,返回默认构造
44+
return &types.FileStatusResponseData{
45+
Process: "failed",
46+
TotalProgress: 0,
47+
FileList: []types.FileStatusItem{},
48+
}, nil
4549
}

0 commit comments

Comments
 (0)