mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 18:47:55 +08:00
fix: 修复加载外服web资源失败
This commit is contained in:
@@ -48,7 +48,6 @@ namespace MaaWpfGui.Services
|
||||
|
||||
// model references
|
||||
private readonly TaskQueueViewModel _taskQueueViewModel;
|
||||
private readonly SettingsViewModel _settingsViewModel;
|
||||
private readonly IMaaApiService _maaApiService;
|
||||
|
||||
private static readonly ILogger _logger = Log.ForContext<StageManager>();
|
||||
@@ -148,7 +147,7 @@ namespace MaaWpfGui.Services
|
||||
// TODO: There may be an issue when the CN resource is loaded from cache (e.g. network down) while global resource is downloaded (e.g. network up again)
|
||||
// var tasksJsonClient = fromWeb ? WebService.RequestMaaApiWithCache(tasksPath) : WebService.RequestMaaApiWithCache(tasksPath);
|
||||
await _maaApiService.RequestMaaApiWithCache(tasksPath);
|
||||
AsstProxy.AsstLoadResource(Directory.GetCurrentDirectory() + "\\cache\\resource\\global\\" + _settingsViewModel.ClientType);
|
||||
AsstProxy.AsstLoadResource(Directory.GetCurrentDirectory() + "\\cache\\resource\\global\\" + clientType);
|
||||
}
|
||||
|
||||
return activity;
|
||||
|
||||
Reference in New Issue
Block a user