Skip to content

Commit

Permalink
Sửa lỗi trả thêm json qc
Browse files Browse the repository at this point in the history
  • Loading branch information
oneweekstudio committed Nov 13, 2019
1 parent 6e93698 commit 32af620
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion SMRemote.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'SMRemote'
s.version = '3.0.1'
s.version = '3.0.2'
s.summary = 'Sản phẩm thuộc về ONEWEEK STUDIO'
s.swift_versions = '4.2'
# This description is used to generate tags and improve search results.
Expand Down
6 changes: 3 additions & 3 deletions SMRemote/Classes/SMRemote.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ open class SMRemote : NSObject {
}


private func setToolConfig(_ config : SMRemoteConfig, completionHandler:@escaping (_ config :Any,_ quangcao: Any) -> Void) {
var qc: AdsModel = AdsModel()
private func setToolConfig(_ config : SMRemoteConfig, completionHandler:@escaping (_ config :Any,_ quangcao: Any?) -> Void) {
var qc: Any?
if let quangcao = self.remoteConfig["quangcao"].jsonValue as? [String: Any]{
print("Quảng cáo :\n \(quangcao)")
SMAdsManager.shared.quangcao = AdsModel(quangcao)
qc = AdsModel(quangcao)
qc = quangcao
}

print("JSON key Config:")
Expand Down

0 comments on commit 32af620

Please sign in to comment.