mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 10:57:45 +08:00
fix: 远程控制截图无法获取最新图像 (#15276)
This commit is contained in:
@@ -422,7 +422,7 @@ public class RemoteControlService
|
||||
bool connected = await Task.Run(() => Instances.AsstProxy.AsstConnect(ref errMsg));
|
||||
if (connected)
|
||||
{
|
||||
var image = await Instances.AsstProxy.AsstGetImageAsync();
|
||||
var image = await Instances.AsstProxy.AsstGetFreshImageAsync();
|
||||
if (image == null)
|
||||
{
|
||||
status = "FAILED";
|
||||
@@ -531,7 +531,7 @@ public class RemoteControlService
|
||||
bool connected = await Task.Run(() => Instances.AsstProxy.AsstConnect(ref errMsg));
|
||||
if (connected)
|
||||
{
|
||||
var image = Instances.AsstProxy.AsstGetImage();
|
||||
var image = Instances.AsstProxy.AsstGetFreshImage();
|
||||
if (image == null)
|
||||
{
|
||||
status = "FAILED";
|
||||
|
||||
Reference in New Issue
Block a user