mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
commit
ba8322dc55
@ -86,10 +86,10 @@ internal object VisitorSvc: BaseSvc() {
|
||||
it.putLong(moe.fuqiuluo.shamrock.remote.service.data.profile.ProfileProtocolConst.PARAM_TARGET_UIN, target)
|
||||
it.putByteArray("vCookies", card.vCookies)
|
||||
it.putBoolean("nearby_people", true)
|
||||
it.putInt("favoriteSource", SUB_FROM_SHARE_CARD_TROOP)
|
||||
it.putInt("favoriteSource", FROM_CONTACTS_TAB)
|
||||
it.putInt("iCount", count)
|
||||
it.putInt("from", FROM_SHARE_CARD)
|
||||
it.putInt("from", FROM_CONTACTS_TAB)
|
||||
}
|
||||
return Result.success(Unit)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -81,6 +81,7 @@ internal class InitRemoteService : IAction {
|
||||
}
|
||||
require(config.port in 0 .. 65536) { "WebSocketServer端口不合法" }
|
||||
val server = WebSocketService(config.address, config.port!!)
|
||||
server.isReuseAddr = true
|
||||
server.start()
|
||||
} catch (e: Throwable) {
|
||||
LogCenter.log(e.stackTraceToString(), Level.ERROR)
|
||||
@ -107,4 +108,4 @@ internal class InitRemoteService : IAction {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user