Skip to content

Commit

Permalink
Fix for .bit API change: errno -> err_no
Browse files Browse the repository at this point in the history
  • Loading branch information
livid committed Sep 6, 2023
1 parent 2095dc7 commit a380832
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Planet/Helper/DotBitKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ class DotBitKit: NSObject {
return nil
}
if let json = try? JSON(data: data) {
if let errno = json["errno"].int, errno == 0 {
debugPrint(".bit account: \(account) json: \(json)")
if let err_no = json["err_no"].int, err_no == 0 {
for record in json["data"]["records"].arrayValue {
debugPrint("\(record)")
debugPrint(".bit account: \(account) record: \(record)")
let key = record["key"].stringValue
let value = record["value"].stringValue
if key.hasPrefix("dweb") {
Expand Down
2 changes: 1 addition & 1 deletion Planet/versioning.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CURRENT_PROJECT_VERSION = 1605
CURRENT_PROJECT_VERSION = 1606

0 comments on commit a380832

Please sign in to comment.