Skip to content

Commit

Permalink
Update VideoCommentsView.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsMEMZ authored Dec 9, 2023
1 parent e3b8a1a commit d7c4da9
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions DarockBili Watch App/Video/VideoCommentsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ struct VideoCommentsView: View {
}

struct CommentRepliesView: View {
var avid: Int
var avid: UInt64
@State var replies: [[String: String]]
var goto: String? = nil
@AppStorage("DedeUserID") var dedeUserID = ""
Expand Down Expand Up @@ -424,7 +424,7 @@ struct VideoCommentsView: View {
@AppStorage("bili_jct") var biliJct = ""
@State var sendCommentCache = ""
@State var isSendingComment = false
@State var avid = -1
@State var avid: UInt64 = 0
var body: some View {
VStack {
if !isSendingComment {
Expand All @@ -448,12 +448,8 @@ struct VideoCommentsView: View {
}
}
.onAppear {
DarockKit.Network.shared.requestString("https://api.darock.top/bili/toav/\(oid)") { respStr, isSuccess in
if isSuccess {
avid = Int(respStr)!
debugPrint(avid)
}
}
avid = bv2av(bvid: oid)
debugPrint(avid)
}
}
}
Expand Down

0 comments on commit d7c4da9

Please sign in to comment.