mirror of
https://github.com/denglihong2007/CRSim
synced 2026-08-12 04:35:39 +08:00
feat: 更新文件编码并添加从车次数据库导入车站车次功能
This commit is contained in:
@@ -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("|||");
|
||||
|
||||
Reference in New Issue
Block a user