Skip to content

qrauthRespStream微信扫码登陆经常超时 #156

@allen6432

Description

@allen6432

微信扫码登录,经常。没有收到WechatGotQrcodeResp, 但是等待大量时间后收到WechatFinishResp的登录超时的response

 Future<void> _listenQrauthResp(WechatQrauthResp resp) async {
    if (kDebugMode) debugPrint('QrauthResp received');
    if (resp is WechatGotQrcodeResp) {
      _handleGotQrcode(resp);
      return;
    }
    if (resp is WechatQrcodeScannedResp) {
      _handleQrcodeScannedResp(resp);
      return;
    }
    if (resp is WechatFinishResp) {
      _handleFinishResp(resp);
      return;
    }
  }


Future<void> _listenQrauthResp(WechatQrauthResp resp) async {
    if (kDebugMode) debugPrint('QrauthResp received');
    if (resp is WechatGotQrcodeResp) {
      _handleGotQrcode(resp);
      return;
    }
    if (resp is WechatQrcodeScannedResp) {
      _handleQrcodeScannedResp(resp);
      return;
    }
    if (resp is WechatFinishResp) {
      _handleFinishResp(resp);
      return;
    }
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions