| | |
| | | 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 |
| | |
| | | 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") { |
| | | // 获取当前时间 |