From 40b237bbbba4ed5a6a8d4b7cb29ed1929e18fd15 Mon Sep 17 00:00:00 2001 From: YoloMao Date: Fri, 13 Oct 2023 17:41:27 +0800 Subject: [PATCH] fix: swiftProtobuf func parseFromJsonObject bug --- Services/SwiftProtobuf/SwiftProtobuf.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/SwiftProtobuf/SwiftProtobuf.swift b/Services/SwiftProtobuf/SwiftProtobuf.swift index 3e2b6fd97..03316cdc5 100644 --- a/Services/SwiftProtobuf/SwiftProtobuf.swift +++ b/Services/SwiftProtobuf/SwiftProtobuf.swift @@ -82,7 +82,7 @@ public class SwiftProtobufWrapper: NSObject { dto.index = (jsonObject["index"] as? NSNumber)?.int32Value ?? 0 dto.query = jsonObject["query"] as? String ?? "" dto.hyperlink = jsonObject["hyperlink"] as? String ?? "" - dto.attributes = jsonObject["extraSdk"] as? [String: String] ?? [:] + dto.attributes = jsonObject["attributes"] as? [String: String] ?? [:] dto.orientation = jsonObject["orientation"] as? String ?? "" dto.title = jsonObject["title"] as? String ?? "" dto.referralPage = jsonObject["referralPage"] as? String ?? ""