feat: 接口调用
This commit is contained in:
parent
ee1b1321ff
commit
2c1c16b389
@ -586,7 +586,7 @@ struct BlindBoxView: View {
|
||||
SVGImage(svgName: "BlindCount")
|
||||
.frame(width: 100, height: 60)
|
||||
|
||||
Text("\(blindCount?.availableQuantity ?? 0)Boxes")
|
||||
Text("\(blindCount?.availableQuantity ?? 0) Boxes")
|
||||
.font(Typography.font(for: .body, family: .quicksandBold))
|
||||
.foregroundColor(.white)
|
||||
.offset(x: 6, y: -18)
|
||||
|
||||
@ -89,7 +89,9 @@ struct MemoriesView: View {
|
||||
isLoading = true
|
||||
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
|
||||
self.isLoading = false
|
||||
|
||||
|
||||
@ -167,7 +167,7 @@ struct MediaUploadView: View {
|
||||
}
|
||||
|
||||
// 开始上传
|
||||
// uploadManager.startUpload()
|
||||
uploadManager.startUpload()
|
||||
} else {
|
||||
print("ℹ️ 没有新文件需要添加,所有选择的文件都已存在")
|
||||
}
|
||||
@ -249,7 +249,7 @@ struct MediaUploadView: View {
|
||||
}
|
||||
|
||||
// 开始上传新添加的媒体
|
||||
// uploadManager.startUpload()
|
||||
uploadManager.startUpload()
|
||||
print("媒体添加完成,总数量: \(uploadManager.selectedMedia.count)")
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user