wechat_kit icon indicating copy to clipboard operation
wechat_kit copied to clipboard

qrauthRespStream微信扫码登陆经常超时

Open allen6432 opened this issue 10 months ago • 2 comments

微信扫码登录,经常。没有收到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;
    }
  }

allen6432 avatar Mar 10 '25 04:03 allen6432

尤其是在hot restart中特别容易复现

allen6432 avatar Mar 10 '25 04:03 allen6432

我是只能拉起一次,关闭后,第二次就拉不起二维码了

GodCai avatar Nov 04 '25 02:11 GodCai