mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
Merge branch 'master' of github.com:whitechi73/OpenShamrock
This commit is contained in:
commit
007e5fef2f
@ -33,16 +33,21 @@ internal class InitRemoteService : IAction {
|
|||||||
|
|
||||||
if (!PlatformUtils.isMqqPackage()) return
|
if (!PlatformUtils.isMqqPackage()) return
|
||||||
|
|
||||||
|
|
||||||
if (ShamrockConfig.allowWebHook()) {
|
if (ShamrockConfig.allowWebHook()) {
|
||||||
HttpService.initTransmitter()
|
HttpService.initTransmitter()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val runtime = AppRuntimeFetcher.appRuntime
|
||||||
|
if (!runtime.isLogin) {
|
||||||
|
LogCenter.log("未登录,不启动任何WebSocket服务,登录完成后,请重新启动QQ。", Level.WARN)
|
||||||
|
return
|
||||||
|
}
|
||||||
if (ShamrockConfig.openWebSocket()) {
|
if (ShamrockConfig.openWebSocket()) {
|
||||||
startWebSocketServer()
|
startWebSocketServer()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ShamrockConfig.openWebSocketClient()) {
|
if (ShamrockConfig.openWebSocketClient()) {
|
||||||
val runtime = AppRuntimeFetcher.appRuntime
|
|
||||||
val curUin = runtime.currentAccountUin
|
val curUin = runtime.currentAccountUin
|
||||||
val defaultToken = ShamrockConfig.getToken()
|
val defaultToken = ShamrockConfig.getToken()
|
||||||
ShamrockConfig.getWebSocketClientAddress().forEach { conn ->
|
ShamrockConfig.getWebSocketClientAddress().forEach { conn ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user