This commit is contained in:
老道 2023-02-25 13:41:53 +08:00
parent 42b89b983a
commit d22a3b16b2
8 changed files with 165 additions and 209 deletions

Binary file not shown.

View File

@ -41,9 +41,10 @@ namespace PCRobot
{ {
try try
{ {
WeChatActivateHelper.Set_Hosts("dldir1v6.qq.com", "127.0.0.1"); WeChatActivateHelper.Set_Hosts("", "");
WeChatActivateHelper.Set_Hosts("dldir1.qq.com", "127.0.0.1"); //WeChatActivateHelper.Set_Hosts("dldir1v6.qq.com", "127.0.0.1");
LogHelper.GetSingleObj().Info("屏蔽", "屏蔽微信自动更新成功"); //WeChatActivateHelper.Set_Hosts("dldir1.qq.com", "127.0.0.1");
//LogHelper.GetSingleObj().Info("屏蔽", "屏蔽微信自动更新成功");
} }
catch (Exception exception) catch (Exception exception)
{ {

View File

@ -1,15 +1,11 @@
using CsharpHttpHelper; using CsharpHttpHelper;
using PCRobot.Properties;
using PCRobot.Utils; using PCRobot.Utils;
using System; using System;
using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.IO; using System.IO;
using System.Security.Cryptography;
using System.Text; using System.Text;
using System.Threading; using System.Threading;
using System.Windows.Forms; using System.Windows.Forms;
using System.Xml;
namespace PCRobot namespace PCRobot
{ {

View File

@ -313,11 +313,11 @@ namespace WechatHelper
string[] hosts = File.ReadAllLines(path); string[] hosts = File.ReadAllLines(path);
List<string> list = hosts.ToList(); List<string> list = hosts.ToList();
string temp = hosts.ToList().FirstOrDefault(x => x.Contains(domain)); //string temp = hosts.ToList().FirstOrDefault(x => x.Contains(domain));
if (string.IsNullOrEmpty(temp)) //if (string.IsNullOrEmpty(temp))
{ //{
list.Add($"{ip} {domain}"); // list.Add($"{ip} {domain}");
} //}
File.WriteAllLines(path, list.ToArray()); File.WriteAllLines(path, list.ToArray());
} }

File diff suppressed because one or more lines are too long

View File

@ -19,6 +19,23 @@ namespace Api.Framework.Timers
public override void Run(object state, bool timeout) public override void Run(object state, bool timeout)
{ {
count++; count++;
//更新抖音CK
if (count == 1 || count % 12 == 0)
{
try
{
var members = CpsClient.Members.Where(f => f.cpstype == CpsType. && f.online);
foreach (var item in members)
{
var api = CpsClient.CreateDouyinRequest(item);
api.UpdateCookies();
}
}
catch (Exception ex)
{
EventClient.OnEvent(this, $"ERROR-:{this.GetType()}-{System.Reflection.MethodBase.GetCurrentMethod().Name}->Dy->{ex.Message}");
}
}
//更新多多进宝状态 //更新多多进宝状态
if (count == 0 || count % 24 == 0) if (count == 0 || count % 24 == 0)
{ {
@ -35,6 +52,8 @@ namespace Api.Framework.Timers
{ {
EventClient.OnEvent(this, $"ERROR-:{this.GetType()}-{System.Reflection.MethodBase.GetCurrentMethod().Name}->Pdd->{ex.Message}"); EventClient.OnEvent(this, $"ERROR-:{this.GetType()}-{System.Reflection.MethodBase.GetCurrentMethod().Name}->Pdd->{ex.Message}");
} }
} }
//判断阿里妈妈状态 //判断阿里妈妈状态
@ -69,6 +88,8 @@ namespace Api.Framework.Timers
{ {
EventClient.OnEvent(this, $"ERROR:{this.GetType()}-{System.Reflection.MethodBase.GetCurrentMethod().Name}- >TB->{ex.Message}"); EventClient.OnEvent(this, $"ERROR:{this.GetType()}-{System.Reflection.MethodBase.GetCurrentMethod().Name}- >TB->{ex.Message}");
} }
} }
} }
} }

View File

@ -30,7 +30,8 @@ namespace Chat.Framework.QQSdk
{ {
try try
{ {
var c = Grant.Framework.GrantClient.Get().Login(e.QQBase.QQ.ToString(), e.QQBase.Nickname, 1002, "3782F5365510E5B25F4FA6FFC04255CB"); var qq = e.QQBase.QQ.ToString();
var c = Grant.Framework.GrantClient.Get().Login(qq, e.QQBase.Nickname, 1002, "3782F5365510E5B25F4FA6FFC04255CB");
//e.QQClient.User.LoginTime = DateTime.Parse(c.endTime); //e.QQClient.User.LoginTime = DateTime.Parse(c.endTime);
Console.WriteLine("登陆状态改变: " + e.Message); Console.WriteLine("登陆状态改变: " + e.Message);
} }