This repository has been archived by the owner on Aug 12, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: 白池 <whitechi73@outlook.com>
- Loading branch information
1 parent
8762966
commit 4d5c054
Showing
13 changed files
with
191 additions
and
23 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
xposed/src/main/java/moe/fuqiuluo/qqinterface/servlet/ark/ArkAppInfo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package moe.fuqiuluo.qqinterface.servlet.ark | ||
sealed class ArkAppInfo( | ||
val appId: Long, | ||
val version: String, | ||
val packageName: String, | ||
val signature: String, | ||
val miniAppId: Long = 0 | ||
) { | ||
data object QQMusic: ArkAppInfo( | ||
appId = 100497308, | ||
version = "0.0.0", | ||
packageName = "com.tencent.qqmusic", | ||
signature = "cbd27cd7c861227d013a25b2d10f0799" | ||
) | ||
data object NetEaseMusic: ArkAppInfo( | ||
appId = 100495085, | ||
version = "0.0.0", | ||
packageName = "com.netease.cloudmusic", | ||
signature = "da6b069da1e2982db3e386233f68d76d" | ||
) | ||
|
||
data object DanMaKu: ArkAppInfo( | ||
appId = 100951776, | ||
version = "0.0.0", | ||
packageName = "tv.danmaku.bili", | ||
signature = "7194d531cbe7960a22007b9f6bdaa38b", | ||
miniAppId = 1109937557 | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
xposed/src/main/java/moe/fuqiuluo/qqinterface/servlet/ark/Region.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package moe.fuqiuluo.qqinterface.servlet.ark | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
internal data class Region( | ||
val adcode: Int, | ||
val province: String?, | ||
val city: String? | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
xposed/src/main/java/moe/fuqiuluo/shamrock/remote/action/handlers/SignArkMessage.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package moe.fuqiuluo.shamrock.remote.action.handlers | ||
|
||
import kotlinx.serialization.Serializable | ||
import kotlinx.serialization.json.JsonElement | ||
import moe.fuqiuluo.qqinterface.servlet.ark.ArkMsgSvc | ||
import moe.fuqiuluo.shamrock.remote.action.ActionSession | ||
import moe.fuqiuluo.shamrock.remote.action.IActionHandler | ||
import moe.fuqiuluo.shamrock.tools.EmptyJsonString | ||
import moe.fuqiuluo.symbols.OneBotHandler | ||
|
||
@OneBotHandler("sign_ark_message") | ||
internal object SignArkMessage: IActionHandler() { | ||
override suspend fun internalHandle(session: ActionSession): String { | ||
val json = if(session.isString("json")) session.getString("json") | ||
else session.getJsonElement("json").toString() | ||
return invoke(json, session.echo) | ||
} | ||
|
||
suspend operator fun invoke(json: String, echo: JsonElement = EmptyJsonString): String { | ||
/* | ||
ArkMsgSvc.tryShareJsonMessage(json).onSuccess { | ||
return ok(SignArkMessageResult(it), echo = echo) | ||
}.onFailure { | ||
return error(it.message ?: it.toString(), echo) | ||
}*/ | ||
return logic("logic error", echo) | ||
} | ||
|
||
@Serializable | ||
data class SignArkMessageResult( | ||
val result: String | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters