     :param: responseJSON 请求返回的 JSON Dictionary
     */
     func printErrorInfo(responseJSON : AnyObject) {
-        if let errorCode = responseJSON["error_code"] , errorMessage = responseJSON["error_message"] {
-            print("refreshToken - error:\(errorCode),\(errorMessage)")
-        }
+        if let responseJSON = responseJSON as? Dictionary<String,AnyObject> {
+            if let errorCode = responseJSON["error_code"] , errorMessage = responseJSON["error_message"] {
+                print("error:\(errorCode),\(errorMessage)")
+            }
+        }
+        
+
     }
 }
 

        }
    }
    
    
    
    // MARK: Util
    

            httpManager.request(.POST, "https://api.worktile.com/oauth2/access_token", parameters: ["client_id": self.clientID,"code":authorizeCode])
                .responseJSON { (_, _, JSON, _) in

                    if let jsonDict = JSON as? Dictionary<String,AnyObject>{

                        // Success
                        if let accessToken = jsonDict["access_token"] as? String {
                            self.accessToken = accessToken
                        }

                        if let refreshToken = jsonDict["refresh_token"] as? String {
                            self.refreshToken = refreshToken
                        }
                        
                        // Error
                        self.printErrorInfo(jsonDict)
                        
                    }
            }
        }else{
            print("error : No authorizeCode.")
