     }()
     
   // 网络请求的核心方法封装
-    func requestJSONDict(urlString:String,parameters:[String : String]?,finished:() ->()) {
+    func requestJSONDict(urlString:String,parameters:[String : String]?,finished:(dict: [String : AnyObject]?,error: NSError?) ->()) {
         
        // 发送POST请求
         POST(urlString, parameters: parameters, progress: { (p) -> Void in

                // 请求成功的回调
                print(result)
                
                
            }) { (_, error) -> Void in
                 // 请求失败的回调
                print(error)
        }
        
        

//

import AFNetworking

let dataErrorDomain = "com.baidu.data.error"


class NetworkTools: AFHTTPSessionManager {
    
