From df66e5d4f863447c7907b642ffc4290654a6e19d Mon Sep 17 00:00:00 2001 From: xiangmy21 <90919434+xiangmy21@users.noreply.github.com> Date: Wed, 8 May 2024 03:28:41 +0800 Subject: [PATCH] Merge (#320) * Update run.sh * Update HttpSender.cs --- logic/Server/HttpSender.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/logic/Server/HttpSender.cs b/logic/Server/HttpSender.cs index 728e627a..c9652b5d 100755 --- a/logic/Server/HttpSender.cs +++ b/logic/Server/HttpSender.cs @@ -58,9 +58,8 @@ public async Task GetLadderScore(double[] scores) var jsonString = await response.Content.ReadAsStringAsync(); // 解析 JSON 字符串 - var result = JsonConvert.DeserializeObject>(jsonString); - double[] org = (from r in result select (double)(r.score)).ToArray(); - return org; + var result = JsonConvert.DeserializeObject(jsonString); + return result.Scores.Select(score => (double)score).ToArray();; } catch (Exception e) {