Commit d240d0bb authored by nanahira's avatar nanahira

print username after logged in

parent ca6985a5
Pipeline #3200 failed with stages
in 4 minutes and 24 seconds
...@@ -76,15 +76,16 @@ public class MyCard : WindowServantSP ...@@ -76,15 +76,16 @@ public class MyCard : WindowServantSP
void matchThread(string username, string password, string matchType) { void matchThread(string username, string password, string matchType) {
try { try {
Program.PrintToChat(InterString.Get("正在登录至MyCard。")); Program.PrintToChat(InterString.Get("正在登录至 MyCard 。"));
string failReason = ""; string failReason = "";
bool res = mycardHelper.login(username, password, out failReason); bool res = mycardHelper.login(username, password, out failReason);
if (!res) { if (!res) {
Program.PrintToChat(InterString.Get("MyCard登录失败。原因: ") + failReason); Program.PrintToChat(InterString.Get("MyCard 登录失败。原因: ") + failReason);
isRequesting = false; isRequesting = false;
return; return;
} }
Program.PrintToChat(InterString.Get("正在请求匹配。匹配类型: ") + matchType); Program.PrintToChat(InterString.Get("MyCard 登录成功,用户名: ") + mycardHelper.username);
Program.PrintToChat(InterString.Get("正在请求匹配。匹配类型: ") + matchType);
MatchResultObject matchResultObject = mycardHelper.requestMatch(matchType, out failReason); MatchResultObject matchResultObject = mycardHelper.requestMatch(matchType, out failReason);
if (matchResultObject == null) { if (matchResultObject == null) {
Program.PrintToChat(InterString.Get("匹配请求失败。原因: ") + failReason); Program.PrintToChat(InterString.Get("匹配请求失败。原因: ") + failReason);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment