From 5a30432144ed510c8868df927f024237b50c69b6 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Tue, 13 May 2025 16:10:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E9=9F=B3=E4=B9=90=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../music_service/android/src/main/AndroidManifest.xml | 3 ++- .../kotlin/com/yunqiinnovation/open_ai_service/MCPClient.kt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/local_plugins/music_service/android/src/main/AndroidManifest.xml b/local_plugins/music_service/android/src/main/AndroidManifest.xml index 3469dab1e..3154f0c1d 100644 --- a/local_plugins/music_service/android/src/main/AndroidManifest.xml +++ b/local_plugins/music_service/android/src/main/AndroidManifest.xml @@ -7,7 +7,8 @@ + android:exported="true" + android:foregroundServiceType="mediaPlayback"> diff --git a/local_plugins/open_ai_service/android/src/main/kotlin/com/yunqiinnovation/open_ai_service/MCPClient.kt b/local_plugins/open_ai_service/android/src/main/kotlin/com/yunqiinnovation/open_ai_service/MCPClient.kt index 15d02734e..c94ebb3d4 100644 --- a/local_plugins/open_ai_service/android/src/main/kotlin/com/yunqiinnovation/open_ai_service/MCPClient.kt +++ b/local_plugins/open_ai_service/android/src/main/kotlin/com/yunqiinnovation/open_ai_service/MCPClient.kt @@ -718,7 +718,7 @@ class MCPClient(private val context: Context? = null) : AutoCloseable { */ suspend fun callTool(name: String, arguments: Map): JSONObject? { val requestId = "${System.currentTimeMillis()}-${(0..1000).random()}" - Log.d(TAG, "[$requestId] 调用工具: $name") + Log.d(TAG, "[$requestId] 调用工具: $name 参数:$arguments") val toolType = getToolType(name)