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