Skip to content

Commit

Permalink
Update UserDetailView.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsMEMZ authored Jan 9, 2024
1 parent e500ae2 commit 65304be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DarockBili Watch App/PersonalCenter/UserDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ struct UserDetailView: View {
}
}

func reqData(signedParam signed: String, retryCounter: inout Int, retryLimit: Int) {
func reqData(signedParam signed: String, retryCounter: UnsafeMutablePointer<Int>, retryLimit: Int) {
let headers: HTTPHeaders = [
//"accept": "*/*",
//"accept-encoding": "gzip, deflate, br",
Expand Down Expand Up @@ -601,9 +601,9 @@ struct UserDetailView: View {
isVideosLoaded = true
}
} else {
if retryCounter < retryLimit {
retryCounter++
reqData(signedParam: signed, retryCounter: &retryCounter, retryLimit: retryLimit)
if retryCounter.pointee < retryLimit {
retryCounter.pointee++
reqData(signedParam: signed, retryCounter: retryCounter, retryLimit: retryLimit)
} else {
tipWithText("访问失败", symbol: "xmark.circle.fill")
}
Expand Down

0 comments on commit 65304be

Please sign in to comment.