|
@@ -320,7 +320,7 @@ class ResultWrapper: NSObject {
|
|
let code: String = data["code"] as? String ?? "06005"
|
|
let code: String = data["code"] as? String ?? "06005"
|
|
if Int(code)! == 200, let dataDic = data["data"] {
|
|
if Int(code)! == 200, let dataDic = data["data"] {
|
|
let wrapper = ResultWrapper(success: true, resultData: dataDic as! NSDictionary)
|
|
let wrapper = ResultWrapper(success: true, resultData: dataDic as! NSDictionary)
|
|
- if let value = data["fileKey"] {
|
|
|
|
|
|
+ if let value = (dataDic as! NSDictionary)["fileKey"] {
|
|
wrapper.content = value as! String
|
|
wrapper.content = value as! String
|
|
}
|
|
}
|
|
complete(wrapper)
|
|
complete(wrapper)
|
|
@@ -889,7 +889,7 @@ class KMAIRequestServer {
|
|
var message: String = ""
|
|
var message: String = ""
|
|
if let string = jsonObject!["data"] {
|
|
if let string = jsonObject!["data"] {
|
|
let dataDic = jsonObject!["data"] as? NSDictionary ?? [:]
|
|
let dataDic = jsonObject!["data"] as? NSDictionary ?? [:]
|
|
- if let dataStr = dataDic["dst"] {
|
|
|
|
|
|
+ if let dataStr = dataDic["content"] {
|
|
message = dataStr as! String
|
|
message = dataStr as! String
|
|
result_bool = true
|
|
result_bool = true
|
|
}
|
|
}
|