     private var deliverCompletionHandler: DeliverCompletionHandler?
     private var payCompletionHandler: PayCompletionHandler?
     private var launchCompletionHandler: LaunchCompletionHandler?
-    private var launchFromWeChatMiniAppHandler: ((String) -> Void)?
+    private var launchFromWeChatMiniAppCompletionHandler: LaunchFromWeChatMiniAppCompletionHandler?
     private var openSchemeCompletionHandler: ((URL?) -> Void)?
 
     private override init() {}

                    let messageExtKey = "messageExt"
                    if success {
                        if let messageExt = info[messageExtKey] as? String {
                            shared.launchFromWeChatMiniAppHandler?(messageExt)
                        } else {
                            shared.deliverCompletionHandler?(.success(nil))
                        }
                    } else {
                        if let messageExt = info[messageExtKey] as? String {
                            shared.launchFromWeChatMiniAppHandler?(messageExt)
                            return true
                        } else {
                            let error: Error = resultCode == -2

        shared.accountSet.insert(account)
    }

    public class func registerLaunchFromWeChatMiniAppHandler(_ handler: @escaping LaunchFromWeChatMiniAppCompletionHandler) {
        shared.launchFromWeChatMiniAppCompletionHandler = handler
    }
}

