From b811352620eba0afbdd3ff6cad95095a976653af Mon Sep 17 00:00:00 2001 From: Raymond Yang Date: Thu, 18 May 2023 11:35:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3put=20model=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/com/ray650128/plugins/ArModelRouting.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/ray650128/plugins/ArModelRouting.kt b/src/main/kotlin/com/ray650128/plugins/ArModelRouting.kt index dbce23a..d879338 100644 --- a/src/main/kotlin/com/ray650128/plugins/ArModelRouting.kt +++ b/src/main/kotlin/com/ray650128/plugins/ArModelRouting.kt @@ -59,7 +59,7 @@ fun Application.configureArModelRouting() { call.sendUnauthorized() return@put } - val body = call.receive() + val body = call.receive().toArModel() val id = call.parameters["id"].toString() val isSuccess = modelService.updateById(id, body) call.sendSuccess(mapOf("success" to isSuccess))