     
     /// 授权成功
     func authorizeComplate(authorizeCode: String?) {
-        if authorizeCode?.characters.count > 0 {
-            // 储存获取到的 code
-            self.authorizeCode = authorizeCode!
-            
-            // 获取 Access token
-            self.getAccessToken()
-            
-            // 获取成功
-            self.delegate?.authorizeComplate(currentAuthorizeViewController!,success: true)
-        }else{
-            // 获取失败
-            self.delegate?.authorizeComplate(currentAuthorizeViewController!,success: false)
-        }
-    }
-
+        if let authorizeCode = authorizeCode {
+            if authorizeCode.characters.count > 0 {
+                // 储存获取到的 code
+                self.authorizeCode = authorizeCode
+                
+                // 获取 Access token
+                self.getAccessToken()
+                
+                // 获取成功
+                self.delegate?.authorizeComplate(currentAuthorizeViewController!,success: true)
+            }else{
+                // 获取失败
+                self.delegate?.authorizeComplate(currentAuthorizeViewController!,success: false)
+            }
+        }
+    }
 }
 
 /**

    public func toRefreshToken(){
        if let refreshToken = self.refreshToken {
            Alamofire.request(.GET, URLString: "https://api.worktile.com/oauth2/refresh_token", parameters: ["client_id": clientID,"refresh_token": refreshToken])
                .responseJSON { (request, _, JSON, _) in
                    print(request!.HTTPBody)
                    if let jsonDict = JSON {
                        
                        // Success

                .responseJSON { (_, _, JSON, _) in

                    var jsonDict = JSON as! [String:AnyObject]

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