fix.修复掉线重连的识别问题

This commit is contained in:
MistEO
2021-09-28 23:27:44 +08:00
parent fc836324a9
commit 87e279ae8f
3 changed files with 29 additions and 5 deletions

View File

@@ -10,6 +10,7 @@
"UseMedicine",
"UseStone",
"EndOfAction",
"PrtsErrorConfirm",
"OfflineConfirm",
"StartToWakeUp",
"TodaysSupplies",
@@ -64,6 +65,7 @@
"PRTS",
"PrtsErrorConfirm",
"EndOfAction",
"OfflineConfirm",
"WaitAfterPRTS"
]
},
@@ -174,21 +176,38 @@
},
"PrtsErrorConfirm": {
"template": "PrtsErrorConfirm.png",
"templThreshold": 0.8,
"cache": false,
"action": "doNothing",
"next": [
"AbandonAction"
"AbandonAction",
"OfflineConfirmAfterBattle"
]
},
"AbandonAction": {
"template": "AbandonAction.png",
"action": "clickSelf",
"cache": false,
"reduceOtherTimes": [
"StartButton1",
"StartButton2",
"Loading"
],
"next": [
"EndOfAction"
"EndOfAction",
"StartToWakeUp",
"OfflineConfirm"
]
},
"OfflineConfirmAfterBattle": {
"template": "PopupConfirm.png",
"action": "clickSelf",
"cache": false,
"next": [
"PRTS",
"PrtsErrorConfirm",
"OfflineConfirm",
"StartToWakeUp"
]
},
"OfflineConfirm": {

View File

@@ -4,6 +4,7 @@ using Stylet;
using StyletIoC;
using System;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using System.Windows;
namespace MeoAsstGui
@@ -154,8 +155,13 @@ namespace MeoAsstGui
mfvm.RunStatus = "出现错误,已停止运行";
break;
}
++_retryTimes;
AsstStartSanity();
Task.Run(() =>
{
AsstStop();
AsstStartSanity();
});
}
}
break;

View File

@@ -326,7 +326,6 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
<PostBuildEvent>xcopy /e /y /i /c $(SolutionDir)resource $(TargetDir)resource</PostBuildEvent>
</PropertyGroup>
</Project>