|
@@ -879,7 +879,7 @@ class KMAIRequestServer {
|
|
|
}
|
|
|
let jsonObject = try? JSONSerialization.jsonObject(with: data, options: []) as? NSDictionary ?? [:]
|
|
|
if jsonObject != nil {
|
|
|
- let codeStr: String = jsonObject!["code"] as! String
|
|
|
+ let codeStr: String = jsonObject!["code"] as? String ?? ""
|
|
|
var code: Int = 0
|
|
|
if let numCode = Int(codeStr) {
|
|
|
code = numCode
|