From 35a0f73a65fc6b3e09545dcff41818d4ea80cea3 Mon Sep 17 00:00:00 2001 From: tanglong <842690096@qq.com> Date: Wed, 1 Jul 2026 15:38:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YD_YiLu/Controllers/DeviceSyncController.cs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/YD_YiLu/Controllers/DeviceSyncController.cs b/YD_YiLu/Controllers/DeviceSyncController.cs index e99c023..2b1bddc 100644 --- a/YD_YiLu/Controllers/DeviceSyncController.cs +++ b/YD_YiLu/Controllers/DeviceSyncController.cs @@ -166,18 +166,6 @@ namespace YD_YiLu.Api.Controllers [Route("/device/sync/grade/my_record")] public async Task MyRecord([FromBody] DeviceSyncMyRecordRequestDto dto) { - /* - * fail: Microsoft.EntityFrameworkCore.Query[10100] - An exception occurred while iterating over the results of a query for context type 'YD_YiLu.Api.Context.SmartSportsContext'. - System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.Double'. - at Microsoft.Data.SqlClient.SqlBuffer.get_Double() - at lambda_method804(Closure , QueryContext , DbDataReader , ResultContext , SingleQueryResultCoordinator ) - at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() - System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.Double'. - at Microsoft.Data.SqlClient.SqlBuffer.get_Double() - at lambda_method804(Closure , QueryContext , DbDataReader , ResultContext , SingleQueryResultCoordinator ) - at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() - */ var res = await _deviceSyncService.MyRecordAsync(dto); return res; }