This commit is contained in:
parent
42b89b983a
commit
d22a3b16b2
Binary file not shown.
|
@ -382,7 +382,7 @@ namespace FLSystem
|
||||||
}
|
}
|
||||||
static string GetExceptionMsg(Exception ex, string backStr, string r)
|
static string GetExceptionMsg(Exception ex, string backStr, string r)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.AppendLine($"****************************异常文本_{r}****************************");
|
sb.AppendLine($"****************************异常文本_{r}****************************");
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
@ -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}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue