Skip to content

Commit

Permalink
Update HttpSender.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangmy21 authored May 7, 2024
1 parent 12add90 commit c6566ea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions logic/Server/HttpSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ public async Task<double[]> GetLadderScore(double[] scores)
var jsonString = await response.Content.ReadAsStringAsync();

// 解析 JSON 字符串
var result = JsonConvert.DeserializeObject<List<ContestResult>>(jsonString);
double[] org = (from r in result select (double)(r.score)).ToArray();
return org;
var result = JsonConvert.DeserializeObject<ResponseResult>(jsonString);

Check failure on line 61 in logic/Server/HttpSender.cs

View workflow job for this annotation

GitHub Actions / dotnet-build-logic

The type or namespace name 'ResponseResult' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 61 in logic/Server/HttpSender.cs

View workflow job for this annotation

GitHub Actions / dotnet-build-logic

The type or namespace name 'ResponseResult' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 61 in logic/Server/HttpSender.cs

View workflow job for this annotation

GitHub Actions / dotnet-build-logic

The type or namespace name 'ResponseResult' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 61 in logic/Server/HttpSender.cs

View workflow job for this annotation

GitHub Actions / dotnet-build-logic

The type or namespace name 'ResponseResult' could not be found (are you missing a using directive or an assembly reference?)
return result.Scores.Select(score => (double)score).ToArray();;
}
catch (Exception e)
{
Expand Down

0 comments on commit c6566ea

Please sign in to comment.