MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    使用simbot-mirai覆盖LoginSolver失效

    HTTP API和第三方SDK
    1
    1
    163
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      Lei0917 last edited by

      BotConfiguration botConfiguration = new BotConfiguration();
      botConfiguration.setLoginSolver(new MyLoginSolver());
      botConfiguration.fileBasedDeviceInfo();
      Bot register =  miraiBotManager.register(code, password, botConfiguration);
      
      //MyLoginSolver
       @Nullable
          @Override
          public Object onSolveSliderCaptcha(@NotNull Bot bot, @NotNull 
             String url, @NotNull Continuation<? super String> continuation) {
                   MiraiLogger logger = bot.getLogger();
                  System.out.println("验证码地址:" + url);
                   logger.info("验证码url:" + url);
              return standardCharImageLoginSolver.onSolveSliderCaptcha(bot, 
              url, continuation);
          }
      

      登录时并未打印url

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact