moxcomic / archer

Archer is a top-tier Mahjong AI development framework, currently reaching as high as Tenhou 9.7 dan. https://moxcomic.github.io/archer/
42 stars 2 forks source link

关于天凤断线重连 #10

Closed ELeventen0320 closed 10 months ago

ELeventen0320 commented 10 months ago

天凤断线后,有无办法可以在不关闭软件的情况下重连

moxcomic commented 10 months ago

tenhouclient 有可使用方法

// 关闭天凤服务器链接
tenhouclient.Inst().Close()
// 链接天凤服务器
// serverIndex int  与 WebUI 顺序对应
// proxyEnable 是否使用代理
// proxyMode 代理模式 http/https/socks5
// proxyPort 代理端口号
tenhouclient.Inst().Connect(serverIndex int, proxyEnable bool, proxyMode string, proxyPort int)
// 登录天凤账号
tenhouclient.Inst().Login(tenhouID string)