From 5597c0b354f881994a75878731c3a02183e9c970 Mon Sep 17 00:00:00 2001
From: asmrobot <asmrobot@hotmail.com>
Date: Wed, 16 Oct 2019 00:58:07 +0000
Subject: [PATCH] format project
---
src/RichCreator/Jobs/WeGameJob.cs | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/RichCreator/Jobs/WeGameJob.cs b/src/RichCreator/Jobs/WeGameJob.cs
index 5a06ee1..349fc50 100644
--- a/src/RichCreator/Jobs/WeGameJob.cs
+++ b/src/RichCreator/Jobs/WeGameJob.cs
@@ -28,9 +28,8 @@
private string UserName;
private string Password;
- public override bool DoWork(out bool tryAgain, CancellationToken cancellationToken,Int32 runningStep)
+ public override ZTResult Do(CancellationToken cancellationToken,Int32 runningStep)
{
- tryAgain = true;
Process.Start(this.Config.TGPDaemonPath);
G.Instance.InfoWriter("等待We Game运行");
@@ -42,7 +41,7 @@
if (!result)
{
G.Instance.InfoWriter("查找游戏失败");
- return false;
+ return ZTResult.Failed;
}
G.Instance.InfoWriter("WeGame于:" + weGameRect.ToString() + ",切换按钮于:" + changeLoginMethodButtonRect.ToString());
@@ -52,7 +51,7 @@
if (!result)
{
G.Instance.InfoWriter("登陆失败");
- return false;
+ return ZTResult.Failed;
}
G.Instance.InfoWriter("WeGame登陆成功");
@@ -61,11 +60,11 @@
if (!result)
{
G.Instance.InfoWriter("DNF未成功打开");
- return false;
+ return ZTResult.Failed;
}
G.Instance.InfoWriter("开始启动DNF游戏");
- return true;
+ return ZTResult.Success;
}
--
Gitblit v1.9.3