From df2e111f67e88c9022e7a98101ea08c2b391d149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=88=E6=A3=AE=E5=90=B4?= <8402134@qq.com> Date: Mon, 3 Oct 2022 15:36:59 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=8F=AA=E5=8F=91=E9=80=81=E7=BB=99=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PCRobot/PCRobotForm.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/PCRobot/PCRobotForm.cs b/PCRobot/PCRobotForm.cs index ede3330..9a8940e 100644 --- a/PCRobot/PCRobotForm.cs +++ b/PCRobot/PCRobotForm.cs @@ -169,7 +169,7 @@ namespace PCRobot { } } - List userNameList = new List() { "gh_3dfda90e39d6", "gh_7aac992b0363" }; + List userNameList = new List() { "gh_3dfda90e39d6"/*, "gh_7aac992b0363"*/ }; private Dictionary PublicUserCache = new Dictionary(); @@ -179,7 +179,7 @@ namespace PCRobot { while (true) { - Thread.Sleep(1000 * 60 * new Random(Guid.NewGuid().GetHashCode()).Next(8, 12)); + Thread.Sleep(1000 * 60 * new Random(Guid.NewGuid().GetHashCode()).Next(5, 10)); StringBuilder sb = new StringBuilder(); try { @@ -212,7 +212,9 @@ namespace PCRobot var robot = client as Wechat_Xiaoxie; if (robot != null) { - var index = new Random(Guid.NewGuid().GetHashCode()).Next(0, userNameList.Count); + //var index = new Random(Guid.NewGuid().GetHashCode()).Next(0, userNameList.Count); + //var index = new Random(Guid.NewGuid().GetHashCode()).Next(0, userNameList.Count); + var index = 0; var username = userNameList[index]; if (username.StartsWith("gh_", StringComparison.CurrentCultureIgnoreCase))