cloudroam
2025-03-31 731667db1ac658a6f6064ef328d04eb1d47c20ff
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") {
                            // 获取当前时间