mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
fix: WebSocket 部分操作未正常返回数据 (close #182)
This commit is contained in:
parent
71dd9469ca
commit
9aa4c37354
@ -7,7 +7,7 @@ pluginManagement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencyResolutionManagement {
|
dependencyResolutionManagement {
|
||||||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
@ -4,16 +4,19 @@ import com.tencent.mobileqq.qqguildsdk.api.IGPSService
|
|||||||
import kotlinx.serialization.json.JsonElement
|
import kotlinx.serialization.json.JsonElement
|
||||||
import moe.fuqiuluo.shamrock.remote.action.ActionSession
|
import moe.fuqiuluo.shamrock.remote.action.ActionSession
|
||||||
import moe.fuqiuluo.shamrock.remote.action.IActionHandler
|
import moe.fuqiuluo.shamrock.remote.action.IActionHandler
|
||||||
|
import moe.fuqiuluo.shamrock.tools.EmptyJsonObject
|
||||||
import moe.fuqiuluo.shamrock.tools.EmptyJsonString
|
import moe.fuqiuluo.shamrock.tools.EmptyJsonString
|
||||||
import moe.fuqiuluo.shamrock.xposed.helper.AppRuntimeFetcher
|
import moe.fuqiuluo.shamrock.xposed.helper.AppRuntimeFetcher
|
||||||
import mqq.app.MobileQQ
|
|
||||||
|
|
||||||
internal object GetGuildServiceProfile : IActionHandler() {
|
internal object GetGuildServiceProfile : IActionHandler() {
|
||||||
override suspend fun internalHandle(session: ActionSession): String {
|
override suspend fun internalHandle(session: ActionSession): String {
|
||||||
TODO("Not yet implemented")
|
return invoke(echo = session.echo)
|
||||||
}
|
}
|
||||||
|
|
||||||
operator fun invoke(echo: JsonElement = EmptyJsonString): String {
|
operator fun invoke(echo: JsonElement = EmptyJsonString): String {
|
||||||
|
// TODO: get_guild_service_profile
|
||||||
|
return ok(EmptyJsonObject, echo, "此功能尚未实现")
|
||||||
|
|
||||||
val service = AppRuntimeFetcher.appRuntime
|
val service = AppRuntimeFetcher.appRuntime
|
||||||
.getRuntimeService(IGPSService::class.java, "all")
|
.getRuntimeService(IGPSService::class.java, "all")
|
||||||
if (!service.isGProSDKInitCompleted) {
|
if (!service.isGProSDKInitCompleted) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user