@@ -33,7 +33,7 @@ func ProcessLoginRsp(cli *client.QQClient, rsp *client.LoginResponse) (bool, err
3333 log .Infof ("验证码处理页面: http://localhost:%s/" , config .RealPort )
3434 switch rsp .Error {
3535 case client .SliderNeededError :
36- log .Infof ("遇到滑块验证码,请阅读README(顺便star),根据提示操作 https://github.com/protobufbot/Go-Mirai-Client" )
36+ log .Infof ("遇到滑块验证码,根据README提示操作 https://github.com/protobufbot/Go-Mirai-Client (顺便star) " )
3737 Captcha = & dto.Captcha {
3838 BotId : cli .Uin ,
3939 CaptchaType : dto .Captcha_SLIDER_CAPTCHA ,
@@ -51,7 +51,7 @@ func ProcessLoginRsp(cli *client.QQClient, rsp *client.LoginResponse) (bool, err
5151 }
5252 return ProcessLoginRsp (cli , rsp )
5353 case client .NeedCaptcha :
54- log .Infof ("遇到图形验证码,请阅读README(顺便star),根据提示操作 https://github.com/protobufbot/Go-Mirai-Client" )
54+ log .Infof ("遇到图形验证码,根据README提示操作 https://github.com/protobufbot/Go-Mirai-Client (顺便star) " )
5555 _ = ioutil .WriteFile ("captcha.jpg" , rsp .CaptchaImage , 0644 )
5656 Captcha = & dto.Captcha {
5757 BotId : cli .Uin ,
@@ -68,7 +68,7 @@ func ProcessLoginRsp(cli *client.QQClient, rsp *client.LoginResponse) (bool, err
6868 }
6969 return ProcessLoginRsp (cli , rsp )
7070 case client .SMSNeededError :
71- log .Infof ("遇到短信验证码,请阅读README(顺便star),根据提示操作 https://github.com/protobufbot/Go-Mirai-Client" )
71+ log .Infof ("遇到短信验证码,根据README提示操作 https://github.com/protobufbot/Go-Mirai-Client (顺便star) " )
7272 if ! cli .RequestSMS () {
7373 return false , fmt .Errorf ("请求短信验证码错误,可能是太频繁" )
7474 }
@@ -87,7 +87,8 @@ func ProcessLoginRsp(cli *client.QQClient, rsp *client.LoginResponse) (bool, err
8787
8888 return ProcessLoginRsp (cli , rsp )
8989 case client .UnsafeDeviceError :
90- log .Infof ("遇到设备锁扫码验证码,请阅读README(顺便star),根据提示操作 https://github.com/protobufbot/Go-Mirai-Client" )
90+ log .Infof ("遇到设备锁扫码验证码,根据README提示操作 https://github.com/protobufbot/Go-Mirai-Client (顺便star)" )
91+ log .Info ("设置环境变量 SMS = 1 可优先使用短信验证码" )
9192 Captcha = & dto.Captcha {
9293 BotId : cli .Uin ,
9394 CaptchaType : dto .Captcha_UNSAFE_DEVICE_LOGIN_VERIFY ,
0 commit comments