feat: 更新文件编码并添加从车次数据库导入车站车次功能

This commit is contained in:
denglihong2007
2025-04-03 01:02:35 +08:00
parent deeff20d71
commit 72e11ea462
102 changed files with 393 additions and 388 deletions

View File

@@ -1,4 +1,4 @@
using CRSim.Core.Models;
using CRSim.Core.Models;
using System.Net;
using System.Text.Json;
@@ -77,7 +77,7 @@ namespace CRSim.Core.Services
return null;
}
public async Task<List<TrainStop>> GetTrainNumnersAsync(string name)
public async Task<List<TrainStop>> GetTrainNumbersAsync(string name)
{
var client = new HttpClient();
var stations = (await client.GetStringAsync("https://kyfw.12306.cn/otn/resources/js/framework/station_name.js")).Split("|||");