feat: 接口调用

This commit is contained in:
jinyaqiu 2025-08-29 18:25:31 +08:00
parent ee1b1321ff
commit 2c1c16b389
3 changed files with 6 additions and 4 deletions

View File

@ -586,7 +586,7 @@ struct BlindBoxView: View {
SVGImage(svgName: "BlindCount") SVGImage(svgName: "BlindCount")
.frame(width: 100, height: 60) .frame(width: 100, height: 60)
Text("\(blindCount?.availableQuantity ?? 0)Boxes") Text("\(blindCount?.availableQuantity ?? 0) Boxes")
.font(Typography.font(for: .body, family: .quicksandBold)) .font(Typography.font(for: .body, family: .quicksandBold))
.foregroundColor(.white) .foregroundColor(.white)
.offset(x: 6, y: -18) .offset(x: 6, y: -18)

View File

@ -89,7 +89,9 @@ struct MemoriesView: View {
isLoading = true isLoading = true
errorMessage = nil errorMessage = nil
NetworkService.shared.get(path: "/material/list") { [self] (result: Result<MaterialResponse, NetworkError>) in let parameters: [String: Any] = ["page": 0]
NetworkService.shared.get(path: "/material/list", parameters: parameters) { [self] (result: Result<MaterialResponse, NetworkError>) in
DispatchQueue.main.async { [self] in DispatchQueue.main.async { [self] in
self.isLoading = false self.isLoading = false

View File

@ -167,7 +167,7 @@ struct MediaUploadView: View {
} }
// //
// uploadManager.startUpload() uploadManager.startUpload()
} else { } else {
print(" 没有新文件需要添加,所有选择的文件都已存在") print(" 没有新文件需要添加,所有选择的文件都已存在")
} }
@ -249,7 +249,7 @@ struct MediaUploadView: View {
} }
// //
// uploadManager.startUpload() uploadManager.startUpload()
print("媒体添加完成,总数量: \(uploadManager.selectedMedia.count)") print("媒体添加完成,总数量: \(uploadManager.selectedMedia.count)")
} }
} }