SwaggyMacro 1 year ago
parent
commit
3ee1fa18ed
2 changed files with 16 additions and 8 deletions
  1. 1 0
      README.md
  2. 15 8
      SheepSheep/Form1.cs

+ 1 - 0
README.md

@@ -13,6 +13,7 @@
 2. 打开羊了个羊
 3. 打开本助手
 4. 一键通关
+![Animation](https://user-images.githubusercontent.com/38845682/190835970-4ae6cb7c-712e-4f40-9041-21ae850a162f.gif)
 
 ## 📚抓包教程
 

+ 15 - 8
SheepSheep/Form1.cs

@@ -119,17 +119,24 @@ namespace SheepSheep
 
         private void button1_Click(object sender, EventArgs e)
         {
-            if (state == 0)
+            if (!this.textBox1.Text.Equals(""))
             {
-                state = 1;
-                Thread t = new Thread(() => passTheGame(int.Parse(this.textBox2.Text)));
-                t.Start();
-                this.button1.Text = "停止羊!";
-                MessageBox.Show(this, "开始羊咯!", "Tips:", MessageBoxButtons.OK, MessageBoxIcon.Information);
+                if (state == 0)
+                {
+                    state = 1;
+                    Thread t = new Thread(() => passTheGame(int.Parse(this.textBox2.Text)));
+                    t.Start();
+                    this.button1.Text = "停止羊!";
+                    MessageBox.Show(this, "开始羊咯!", "Tips:", MessageBoxButtons.OK, MessageBoxIcon.Information);
+                }
+                else
+                {
+                    state = 0;
+                    this.button1.Text = "羊它!";
+                }
             }
             else {
-                state = 0;
-                this.button1.Text = "羊它!";
+                MessageBox.Show(this, "未填写Token,请点击\"获取Token\"后再\"羊它!\"", "Tips:", MessageBoxButtons.OK, MessageBoxIcon.Warning);
             }
         }