From cb99bd7dad1b305a434c5c6c99ca65e782eb0f34 Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期五, 11 四月 2025 17:32:12 +0800
Subject: [PATCH] add: 消息提醒
---
app/src/main/java/com/example/firstapp/receiver/SmsReceiver.kt | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/app/src/main/java/com/example/firstapp/receiver/SmsReceiver.kt b/app/src/main/java/com/example/firstapp/receiver/SmsReceiver.kt
index 3d732b4..9a611bb 100644
--- a/app/src/main/java/com/example/firstapp/receiver/SmsReceiver.kt
+++ b/app/src/main/java/com/example/firstapp/receiver/SmsReceiver.kt
@@ -13,6 +13,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 kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
@@ -58,7 +59,7 @@
CoroutineScope(Dispatchers.IO).launch {
try {
val response =
- RetrofitClient.apiService.processSms(mapOf("content" to messageBody.toString()))
+ RetrofitModelClient.modelService.processSms(mapOf("content" to messageBody.toString()))
if (response.status == "success") {
// 获取当前时间
--
Gitblit v1.9.3