 
         } else if URL.scheme.hasPrefix("tencent") {
 
-            var info = [String: String]()
-
-            if let querys = URL.query?.componentsSeparatedByString("&") {
-                for query in querys {
-                    let keyValuePair = query.componentsSeparatedByString("=")
-                    if keyValuePair.count == 2 {
-                        let key = keyValuePair[0]
-                        let value = keyValuePair[1]
-
-                        info[key] = value
-                    }
-                }
-            }
-
-            print(info)
-
-            guard let error = info["error"] else {
+            guard let error = URL.queryInfo["error"] else {
                 return false
             }
 

    }
}

extension NSBundle {

    var displayName: String? {



    public class func handleOpenURL(URL: NSURL) -> Bool {

        if URL.scheme.hasPrefix("wx") {

            guard let data = UIPasteboard.generalPasteboard().dataForPasteboardType("content") else {
