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 7, 2024
1 parent 6f3bdff commit d90f910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DarockBili Watch App/PersonalCenter/UserDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ struct UserDetailView: View {
"cookie": "SESSDATA=\(sessdata);",
"User-Agent": "Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
]
AF.request("https://api.bilibili.com/x/relation/modify", method: .post, parameters: ModifyUserRelation(fid: Int(uid)!, act: isFollowed ? 2 : 1, csrf: biliJct), headers: headers).response { response in
AF.request("https://api.bilibili.com/x/relation/modify", method: .post, parameters: ModifyUserRelation(fid: Int64(uid)!, act: isFollowed ? 2 : 1, csrf: biliJct), headers: headers).response { response in
debugPrint(response)
let json = try! JSON(data: response.data!)
let code = json["code"].int!
Expand All @@ -274,7 +274,7 @@ struct UserDetailView: View {
Text(isFollowed ? "取消关注" : "关注")
}
})
NavigationLink("", isActive: $isSendbMessagePresented, destination: {bMessageSendView(uid: Int(uid)!, username: username)})
NavigationLink("", isActive: $isSendbMessagePresented, destination: {bMessageSendView(uid: Int64(uid)!, username: username)})
.frame(width: 0, height: 0)
Button(action: {
isSendbMessagePresented = true
Expand Down

0 comments on commit d90f910

Please sign in to comment.