From 1831c2a6304496729fc16af624c37e299beae83e Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期二, 01 四月 2025 11:36:19 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- app/src/main/java/com/example/firstapp/MainActivity.kt | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/app/src/main/java/com/example/firstapp/MainActivity.kt b/app/src/main/java/com/example/firstapp/MainActivity.kt index 8b689c9..0554ff5 100644 --- a/app/src/main/java/com/example/firstapp/MainActivity.kt +++ b/app/src/main/java/com/example/firstapp/MainActivity.kt @@ -26,6 +26,7 @@ import com.example.firstapp.database.entity.Code import com.example.firstapp.database.entity.Msg import com.example.firstapp.database.service.RetrofitClient +import com.example.firstapp.database.service.RetrofitModelClient import com.example.firstapp.ui.home.HomeViewModel import com.example.firstapp.utils.Log import com.example.firstapp.workers.KeywordUpdateWorker @@ -256,7 +257,7 @@ CoroutineScope(Dispatchers.IO).launch { try { // API调用移到synchronized块外 - val response = RetrofitClient.apiService.processSms(mapOf("content" to messageBody)) + val response = RetrofitModelClient.modelService.processSms(mapOf("content" to messageBody)) // 数据库操作放在synchronized块内 synchronized(syncLock) { -- Gitblit v1.9.3