From 2e46ed19dcc2449bdac9eb1cf2fa3a940ddc388a Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Sat, 17 May 2025 16:27:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=90=8C=E6=AD=A5=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- local_plugins/agent_service/android/build.gradle.kts | 1 + .../kotlin/com/yunqiinnovation/agent_service/AgentService.kt | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/local_plugins/agent_service/android/build.gradle.kts b/local_plugins/agent_service/android/build.gradle.kts index e97e6c138..b37d622a5 100644 --- a/local_plugins/agent_service/android/build.gradle.kts +++ b/local_plugins/agent_service/android/build.gradle.kts @@ -47,6 +47,7 @@ dependencies { add("compileOnly", project(":chat_storage")) add("compileOnly", project(":ble_service")) add("compileOnly", project(":music_service")) + add("compileOnly", project(":amap_service")) add("compileOnly", project(":volcano_speech")) add("compileOnly", project(":bytedance_speech")) add("compileOnly", project(":speech")) diff --git a/local_plugins/agent_service/android/src/main/kotlin/com/yunqiinnovation/agent_service/AgentService.kt b/local_plugins/agent_service/android/src/main/kotlin/com/yunqiinnovation/agent_service/AgentService.kt index 4be368bb5..5c40eaaeb 100644 --- a/local_plugins/agent_service/android/src/main/kotlin/com/yunqiinnovation/agent_service/AgentService.kt +++ b/local_plugins/agent_service/android/src/main/kotlin/com/yunqiinnovation/agent_service/AgentService.kt @@ -7,6 +7,7 @@ import com.yunqiinnovation.azure_speech.AzureAsrHelper import com.yunqiinnovation.open_ai_service.OpenAIService import com.yunqiinnovation.chat_storage.ChatStorageHelper import com.yunqiinnovation.music_service.MusicServiceStarter +import com.yunqiinnovation.amap_service.NavigationServiceStarter import android.util.Log import io.flutter.plugin.common.MethodChannel import kotlinx.coroutines.* @@ -1220,10 +1221,10 @@ object AgentService : CoroutineScope { fun processNavigation(start:String,end:String){ // 如果 playlist 中有有效的歌曲,开始播放 if (!start.isNullOrEmpty() && !end.isNullOrEmpty()) { - FileLogger.i(TAG, "启动导航服务 ${start} ${end}") + Log.i(TAG, "启动导航服务 ${start} ${end}") NavigationServiceStarter.startServiceWithCommand(context, command = "start", startpos = start, endpos = end) } else { - FileLogger.i(TAG, "启动导航服务失败") + Log.i(TAG, "启动导航服务失败") } } } \ No newline at end of file