Browse Source

加入封号处理

ENC_Euphony 1 năm trước cách đây
mục cha
commit
54c45ff54b
1 tập tin đã thay đổi với 4 bổ sung và 0 xóa
  1. 4 0
      Plain Craft Launcher 2/Modules/Minecraft/ModLaunch.vb

+ 4 - 0
Plain Craft Launcher 2/Modules/Minecraft/ModLaunch.vb

@@ -913,6 +913,10 @@ Retry:
                 Return {"Relogin", ""}
             ElseIf Response.Contains("Account security interrupt") Then
                 MyMsgBox("该账号由于安全问题无法登陆,请前往微软账户页获取更多信息。", "登录失败", "我知道了", IsWarn:=True)
+                Throw New Exception("$$")
+            ElseIf Response.Contains("service abuse") Then
+                MyMsgBox("非常抱歉,该账号已被微软封禁,无法登录。", "登录失败", "我知道了", IsWarn:=True)
+                Throw New Exception("$$")
             Else
                 Throw
             End If