Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:whitechi73/OpenShamrock
Browse files Browse the repository at this point in the history
  • Loading branch information
ikechan8370 committed Dec 1, 2023
2 parents 48773cc + b2ad443 commit 007e5fe
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,21 @@ internal class InitRemoteService : IAction {

if (!PlatformUtils.isMqqPackage()) return


if (ShamrockConfig.allowWebHook()) {
HttpService.initTransmitter()
}

val runtime = AppRuntimeFetcher.appRuntime
if (!runtime.isLogin) {
LogCenter.log("未登录,不启动任何WebSocket服务,登录完成后,请重新启动QQ。", Level.WARN)
return
}
if (ShamrockConfig.openWebSocket()) {
startWebSocketServer()
}

if (ShamrockConfig.openWebSocketClient()) {
val runtime = AppRuntimeFetcher.appRuntime
val curUin = runtime.currentAccountUin
val defaultToken = ShamrockConfig.getToken()
ShamrockConfig.getWebSocketClientAddress().forEach { conn ->
Expand Down

0 comments on commit 007e5fe

Please sign in to comment.