This commit is contained in:
parent
0501164b48
commit
ddf0533241
40
FLSystem.sln
40
FLSystem.sln
|
@ -92,8 +92,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CouponsSend", "应用\Coupo
|
|||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Delivery.Plugin", "应用\Delivery.Plugin\Delivery.Plugin.csproj", "{4311A2FD-1032-47CE-B627-FE527A962288}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProductTool", "ProductTool\ProductTool.csproj", "{8CC5E981-FAAF-47C6-93C8-45986A077B9B}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProductClient", "应用\ProductClient\ProductClient.csproj", "{B2FF88C8-B6B3-4FDE-ADFE-FCC702A9CD4C}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Transmitter", "应用\Transmitter\Transmitter.csproj", "{ADB455D6-B2F9-4C61-90EE-60D2C04D16BC}"
|
||||
|
@ -176,6 +174,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KSRebate", "应用\KSRebate
|
|||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSIMTurnMoney", "应用\CSIMTurnMoney\CSIMTurnMoney.csproj", "{91C665C6-BE69-4A0C-AFC1-C2DBD82E97DC}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProductTool", "应用\ProductTool\ProductTool.csproj", "{D8E70FE0-49F2-4C0A-AC51-1B63B0DB35BB}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
|
@ -844,20 +844,6 @@ Global
|
|||
{4311A2FD-1032-47CE-B627-FE527A962288}.Release|x64.Build.0 = Release|Any CPU
|
||||
{4311A2FD-1032-47CE-B627-FE527A962288}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{4311A2FD-1032-47CE-B627-FE527A962288}.Release|x86.Build.0 = Release|Any CPU
|
||||
{8CC5E981-FAAF-47C6-93C8-45986A077B9B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{8CC5E981-FAAF-47C6-93C8-45986A077B9B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{8CC5E981-FAAF-47C6-93C8-45986A077B9B}.Debug|ARM.ActiveCfg = Debug|Any CPU
|
||||
{8CC5E981-FAAF-47C6-93C8-45986A077B9B}.Debug|ARM64.ActiveCfg = Debug|Any CPU
|
||||
{8CC5E981-FAAF-47C6-93C8-45986A077B9B}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{8CC5E981-FAAF-47C6-93C8-45986A077B9B}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{8CC5E981-FAAF-47C6-93C8-45986A077B9B}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{8CC5E981-FAAF-47C6-93C8-45986A077B9B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{8CC5E981-FAAF-47C6-93C8-45986A077B9B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{8CC5E981-FAAF-47C6-93C8-45986A077B9B}.Release|ARM.ActiveCfg = Release|Any CPU
|
||||
{8CC5E981-FAAF-47C6-93C8-45986A077B9B}.Release|ARM64.ActiveCfg = Release|Any CPU
|
||||
{8CC5E981-FAAF-47C6-93C8-45986A077B9B}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{8CC5E981-FAAF-47C6-93C8-45986A077B9B}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{8CC5E981-FAAF-47C6-93C8-45986A077B9B}.Release|x86.Build.0 = Release|Any CPU
|
||||
{B2FF88C8-B6B3-4FDE-ADFE-FCC702A9CD4C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{B2FF88C8-B6B3-4FDE-ADFE-FCC702A9CD4C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B2FF88C8-B6B3-4FDE-ADFE-FCC702A9CD4C}.Debug|ARM.ActiveCfg = Debug|Any CPU
|
||||
|
@ -1502,6 +1488,26 @@ Global
|
|||
{91C665C6-BE69-4A0C-AFC1-C2DBD82E97DC}.Release|x64.Build.0 = Release|Any CPU
|
||||
{91C665C6-BE69-4A0C-AFC1-C2DBD82E97DC}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{91C665C6-BE69-4A0C-AFC1-C2DBD82E97DC}.Release|x86.Build.0 = Release|Any CPU
|
||||
{D8E70FE0-49F2-4C0A-AC51-1B63B0DB35BB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{D8E70FE0-49F2-4C0A-AC51-1B63B0DB35BB}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{D8E70FE0-49F2-4C0A-AC51-1B63B0DB35BB}.Debug|ARM.ActiveCfg = Debug|Any CPU
|
||||
{D8E70FE0-49F2-4C0A-AC51-1B63B0DB35BB}.Debug|ARM.Build.0 = Debug|Any CPU
|
||||
{D8E70FE0-49F2-4C0A-AC51-1B63B0DB35BB}.Debug|ARM64.ActiveCfg = Debug|Any CPU
|
||||
{D8E70FE0-49F2-4C0A-AC51-1B63B0DB35BB}.Debug|ARM64.Build.0 = Debug|Any CPU
|
||||
{D8E70FE0-49F2-4C0A-AC51-1B63B0DB35BB}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{D8E70FE0-49F2-4C0A-AC51-1B63B0DB35BB}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{D8E70FE0-49F2-4C0A-AC51-1B63B0DB35BB}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{D8E70FE0-49F2-4C0A-AC51-1B63B0DB35BB}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{D8E70FE0-49F2-4C0A-AC51-1B63B0DB35BB}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{D8E70FE0-49F2-4C0A-AC51-1B63B0DB35BB}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{D8E70FE0-49F2-4C0A-AC51-1B63B0DB35BB}.Release|ARM.ActiveCfg = Release|Any CPU
|
||||
{D8E70FE0-49F2-4C0A-AC51-1B63B0DB35BB}.Release|ARM.Build.0 = Release|Any CPU
|
||||
{D8E70FE0-49F2-4C0A-AC51-1B63B0DB35BB}.Release|ARM64.ActiveCfg = Release|Any CPU
|
||||
{D8E70FE0-49F2-4C0A-AC51-1B63B0DB35BB}.Release|ARM64.Build.0 = Release|Any CPU
|
||||
{D8E70FE0-49F2-4C0A-AC51-1B63B0DB35BB}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{D8E70FE0-49F2-4C0A-AC51-1B63B0DB35BB}.Release|x64.Build.0 = Release|Any CPU
|
||||
{D8E70FE0-49F2-4C0A-AC51-1B63B0DB35BB}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{D8E70FE0-49F2-4C0A-AC51-1B63B0DB35BB}.Release|x86.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
@ -1538,7 +1544,6 @@ Global
|
|||
{489BB790-226C-4FAD-8D1E-51D72A7FF8E5} = {927E9767-FEA0-4FE7-A441-69E4CFEC0B48}
|
||||
{3D53BFC6-1C75-483A-BF7C-6B20F0152C66} = {7731056B-09B5-4494-907E-CDCD561F36FA}
|
||||
{4311A2FD-1032-47CE-B627-FE527A962288} = {7731056B-09B5-4494-907E-CDCD561F36FA}
|
||||
{8CC5E981-FAAF-47C6-93C8-45986A077B9B} = {7731056B-09B5-4494-907E-CDCD561F36FA}
|
||||
{B2FF88C8-B6B3-4FDE-ADFE-FCC702A9CD4C} = {7731056B-09B5-4494-907E-CDCD561F36FA}
|
||||
{ADB455D6-B2F9-4C61-90EE-60D2C04D16BC} = {7731056B-09B5-4494-907E-CDCD561F36FA}
|
||||
{676D6EF4-FD4E-48E2-8AAE-14AC4B2F4B1D} = {116B0EB5-AF61-4B16-8942-667CF8989044}
|
||||
|
@ -1572,6 +1577,7 @@ Global
|
|||
{483D41CE-0A17-40C6-AF90-554794B2214E} = {927E9767-FEA0-4FE7-A441-69E4CFEC0B48}
|
||||
{BD719746-8782-4DA2-9469-75A03E02FAB9} = {7731056B-09B5-4494-907E-CDCD561F36FA}
|
||||
{91C665C6-BE69-4A0C-AFC1-C2DBD82E97DC} = {7731056B-09B5-4494-907E-CDCD561F36FA}
|
||||
{D8E70FE0-49F2-4C0A-AC51-1B63B0DB35BB} = {7731056B-09B5-4494-907E-CDCD561F36FA}
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {FC35004E-A0B3-48A7-9799-844D5A99B33F}
|
||||
|
|
|
@ -0,0 +1,49 @@
|
|||
using System;
|
||||
using Api.Framework.Tools;
|
||||
using SqlSugar;
|
||||
|
||||
namespace ProductTool
|
||||
{
|
||||
// Token: 0x02000005 RID: 5
|
||||
public class CircleClass : base_model
|
||||
{
|
||||
// Token: 0x1700000B RID: 11
|
||||
// (get) Token: 0x06000017 RID: 23 RVA: 0x00002621 File Offset: 0x00000821
|
||||
// (set) Token: 0x06000018 RID: 24 RVA: 0x00002629 File Offset: 0x00000829
|
||||
[SugarColumn(Length = 500)]
|
||||
public string itemUrl { get; set; }
|
||||
|
||||
// Token: 0x1700000C RID: 12
|
||||
// (get) Token: 0x06000019 RID: 25 RVA: 0x00002632 File Offset: 0x00000832
|
||||
// (set) Token: 0x0600001A RID: 26 RVA: 0x0000263A File Offset: 0x0000083A
|
||||
[SugarColumn(Length = 500)]
|
||||
public string quanUrl { get; set; }
|
||||
|
||||
// Token: 0x1700000D RID: 13
|
||||
// (get) Token: 0x0600001B RID: 27 RVA: 0x00002643 File Offset: 0x00000843
|
||||
// (set) Token: 0x0600001C RID: 28 RVA: 0x0000264B File Offset: 0x0000084B
|
||||
[SugarColumn(ColumnDataType = "text")]
|
||||
public string circle { get; set; }
|
||||
|
||||
// Token: 0x1700000E RID: 14
|
||||
// (get) Token: 0x0600001D RID: 29 RVA: 0x00002654 File Offset: 0x00000854
|
||||
// (set) Token: 0x0600001E RID: 30 RVA: 0x0000265C File Offset: 0x0000085C
|
||||
[SugarColumn(ColumnDataType = "text")]
|
||||
public string comment { get; set; }
|
||||
|
||||
// Token: 0x1700000F RID: 15
|
||||
// (get) Token: 0x0600001F RID: 31 RVA: 0x00002665 File Offset: 0x00000865
|
||||
// (set) Token: 0x06000020 RID: 32 RVA: 0x0000266D File Offset: 0x0000086D
|
||||
public bool appendQrcode { get; set; }
|
||||
|
||||
// Token: 0x17000010 RID: 16
|
||||
// (get) Token: 0x06000021 RID: 33 RVA: 0x00002676 File Offset: 0x00000876
|
||||
// (set) Token: 0x06000022 RID: 34 RVA: 0x0000267E File Offset: 0x0000087E
|
||||
public bool isItem { get; set; }
|
||||
|
||||
// Token: 0x17000011 RID: 17
|
||||
// (get) Token: 0x06000023 RID: 35 RVA: 0x00002687 File Offset: 0x00000887
|
||||
// (set) Token: 0x06000024 RID: 36 RVA: 0x0000268F File Offset: 0x0000088F
|
||||
public DateTime sendTime { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,205 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
using Api.Framework;
|
||||
using Api.Framework.Events;
|
||||
using Api.Framework.SDK;
|
||||
using Api.Framework.Tools;
|
||||
using Chat.Framework;
|
||||
using Chat.Framework.WXSdk.Implement;
|
||||
using CsharpHttpHelper;
|
||||
using ProductTool.Properties;
|
||||
using SqlSugar;
|
||||
|
||||
namespace ProductTool
|
||||
{
|
||||
// Token: 0x02000006 RID: 6
|
||||
public class Class1 : Plugin
|
||||
{
|
||||
// Token: 0x06000026 RID: 38 RVA: 0x000026A1 File Offset: 0x000008A1
|
||||
public Class1()
|
||||
{
|
||||
base.Name = "爆单-服务端";
|
||||
base.Logo = Resources.爆;
|
||||
base.Note = "专业的运营团队、代运营朋友圈、直播群!";
|
||||
}
|
||||
|
||||
// Token: 0x06000027 RID: 39 RVA: 0x000026D0 File Offset: 0x000008D0
|
||||
public override void Start()
|
||||
{
|
||||
TimerTask.NewTimer<ThreadDelete>(60, null);
|
||||
SqlSugarClient session = ApiClient.GetSession(null, true);
|
||||
bool flag = !SqlSugarExtend.TableExist<CircleClass>(session);
|
||||
if (flag)
|
||||
{
|
||||
SqlSugarExtend.CreateTable<CircleClass>(session);
|
||||
}
|
||||
base.SDK.WebRequestEvent += this.SDK_WebRequestEvent;
|
||||
base.Start();
|
||||
}
|
||||
|
||||
// Token: 0x06000028 RID: 40 RVA: 0x00002722 File Offset: 0x00000922
|
||||
public override void Stop()
|
||||
{
|
||||
TimerTask.Close<ThreadDelete>();
|
||||
base.SDK.WebRequestEvent -= this.SDK_WebRequestEvent;
|
||||
base.Stop();
|
||||
}
|
||||
|
||||
// Token: 0x06000029 RID: 41 RVA: 0x0000274C File Offset: 0x0000094C
|
||||
private string FormatXml(XmlDocument xml)
|
||||
{
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
StringWriter w = new StringWriter(stringBuilder);
|
||||
XmlTextWriter xmlTextWriter = null;
|
||||
try
|
||||
{
|
||||
xmlTextWriter = new XmlTextWriter(w);
|
||||
xmlTextWriter.Formatting = Formatting.Indented;
|
||||
xmlTextWriter.Indentation = 1;
|
||||
xmlTextWriter.IndentChar = '\t';
|
||||
xml.WriteTo(xmlTextWriter);
|
||||
}
|
||||
finally
|
||||
{
|
||||
bool flag = xmlTextWriter == null;
|
||||
if (flag)
|
||||
{
|
||||
xmlTextWriter.Close();
|
||||
}
|
||||
}
|
||||
return stringBuilder.ToString();
|
||||
}
|
||||
|
||||
// Token: 0x0600002A RID: 42 RVA: 0x000027C8 File Offset: 0x000009C8
|
||||
private void SDK_WebRequestEvent(object sender, WebRequestEvents e)
|
||||
{
|
||||
try
|
||||
{
|
||||
string text = e.Param.ContainsKey("method") ? e.Param["method"] : string.Empty;
|
||||
string a = text;
|
||||
if (!(a == "getCircle"))
|
||||
{
|
||||
if (!(a == "addItem"))
|
||||
{
|
||||
if (a == "findPyq")
|
||||
{
|
||||
string text2 = e.Param["wxid"];
|
||||
PluginExtend.OnLog(this, "获取" + text2 + "的朋友圈");
|
||||
List<WeixinBase> list = (from f in ChatClient.WXClient.Values
|
||||
where f.WeixinType != WeixinType.QYHook微信
|
||||
select f).ToList<WeixinBase>();
|
||||
foreach (WeixinBase weixinBase in list)
|
||||
{
|
||||
Dictionary<string, object> dictionary = weixinBase.FindCircle(text2, "", 0L).FirstOrDefault<Dictionary<string, object>>();
|
||||
bool flag = dictionary != null;
|
||||
if (flag)
|
||||
{
|
||||
PluginExtend.OnLog(this, string.Concat(new string[]
|
||||
{
|
||||
weixinBase.User.Nick,
|
||||
"(",
|
||||
weixinBase.User.Username,
|
||||
")获取",
|
||||
text2,
|
||||
"朋友圈成功"
|
||||
}));
|
||||
XmlDocument xmlDocument = new XmlDocument();
|
||||
xmlDocument.LoadXml(dictionary["ObjectDesc"].ToString());
|
||||
object obj = this.FormatXml(xmlDocument);
|
||||
e.Send(obj, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
PluginExtend.OnLog(this, string.Concat(new string[]
|
||||
{
|
||||
weixinBase.User.Nick,
|
||||
"(",
|
||||
weixinBase.User.Username,
|
||||
")获取",
|
||||
text2,
|
||||
"朋友圈为空"
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
string url = e.Param["itemUrl"];
|
||||
SqlSugarClient session = ApiClient.GetSession(null, true);
|
||||
bool flag2 = bool.Parse(e.Param["isItem"]);
|
||||
string circle = HttpHelper.URLDecode(e.Param["circle"], null);
|
||||
bool flag3 = string.IsNullOrEmpty(circle);
|
||||
if (flag3)
|
||||
{
|
||||
throw new Exception("朋友圈内容,不能为空!");
|
||||
}
|
||||
bool flag4 = flag2;
|
||||
CircleClass circleClass;
|
||||
if (flag4)
|
||||
{
|
||||
circleClass = session.Queryable<CircleClass>().Single((CircleClass f) => f.itemUrl == url && f.sendTime > DateTime.Now.AddHours(-24.0));
|
||||
}
|
||||
else
|
||||
{
|
||||
circleClass = session.Queryable<CircleClass>().Single((CircleClass f) => f.circle == circle && f.sendTime > DateTime.Now.AddHours(-24.0));
|
||||
}
|
||||
bool flag5 = circleClass != null;
|
||||
if (flag5)
|
||||
{
|
||||
throw new Exception("此宝贝已发布过!");
|
||||
}
|
||||
circleClass = new CircleClass();
|
||||
circleClass.isItem = bool.Parse(e.Param["isItem"]);
|
||||
circleClass.appendQrcode = bool.Parse(e.Param["appendQrcode"]);
|
||||
circleClass.itemUrl = HttpHelper.URLDecode(e.Param["itemUrl"], null);
|
||||
circleClass.quanUrl = HttpHelper.URLDecode(e.Param["quanUrl"], null);
|
||||
circleClass.comment = HttpHelper.URLDecode(e.Param["comment"], null);
|
||||
circleClass.circle = HttpHelper.URLDecode(e.Param["circle"], null);
|
||||
circleClass.sendTime = (string.IsNullOrEmpty(e.Param["sendTime"]) ? DateTime.Now : DateTime.Parse(HttpHelper.URLDecode(e.Param["sendTime"], null)));
|
||||
bool flag6 = circleClass.isItem && string.IsNullOrEmpty(circleClass.itemUrl);
|
||||
if (flag6)
|
||||
{
|
||||
throw new Exception("宝贝无效!");
|
||||
}
|
||||
session.Insertable<CircleClass>(circleClass).ExecuteCommand();
|
||||
e.Send("添加成功!", 0);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
string b = e.Param["lastId"];
|
||||
CircleClass circleClass2 = CacheTool.GetSingleObj().Get<CircleClass>("CircleClass");
|
||||
bool flag7 = circleClass2 != null && circleClass2.id.ToString() != b;
|
||||
if (flag7)
|
||||
{
|
||||
e.Send(new
|
||||
{
|
||||
lastId = circleClass2.id,
|
||||
itemUrl = circleClass2.itemUrl,
|
||||
quanUrl = circleClass2.quanUrl,
|
||||
sendTime = circleClass2.sendTime.ToString("yyyy-MM-dd HH:mm:ss"),
|
||||
circle = circleClass2.circle,
|
||||
comment = circleClass2.comment.Replace("¥", "").Replace("元", ""),
|
||||
appendQrcode = circleClass2.appendQrcode,
|
||||
isItem = circleClass2.isItem
|
||||
}, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
e.Send(new Exception("无结果"), -1);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
PluginExtend.OnLog(this, ex.Message);
|
||||
e.Send(ex, -1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,69 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{D8E70FE0-49F2-4C0A-AC51-1B63B0DB35BB}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>ProductTool</RootNamespace>
|
||||
<AssemblyName>ProductTool</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Api.Framework">
|
||||
<HintPath>..\..\Debug\Api.Framework.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="Chat.Framework">
|
||||
<HintPath>..\..\Debug\Chat.Framework.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="HttpHelper">
|
||||
<HintPath>..\..\Debug\HttpHelper.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="SqlSugar">
|
||||
<HintPath>..\..\Debug\SqlSugar.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<AppDesigner Include="Properties\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="CircleClass.cs" />
|
||||
<Compile Include="Class1.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Properties\Resources.cs" />
|
||||
<Compile Include="ThreadDelete.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Properties\Resources.resources" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: CompilationRelaxations(8)]
|
||||
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
|
||||
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
|
||||
[assembly: AssemblyTitle("ProductTool")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("ProductTool")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2019")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: ComVisible(false)]
|
||||
[assembly: Guid("8cc5e981-faaf-47c6-93c8-45986a077b9b")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
@ -0,0 +1,73 @@
|
|||
using System;
|
||||
using System.CodeDom.Compiler;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Globalization;
|
||||
using System.Resources;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace ProductTool.Properties
|
||||
{
|
||||
// Token: 0x02000008 RID: 8
|
||||
[GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
|
||||
[DebuggerNonUserCode]
|
||||
[CompilerGenerated]
|
||||
internal class Resources
|
||||
{
|
||||
// Token: 0x0600002D RID: 45 RVA: 0x00002F78 File Offset: 0x00001178
|
||||
internal Resources()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x17000012 RID: 18
|
||||
// (get) Token: 0x0600002E RID: 46 RVA: 0x00002F84 File Offset: 0x00001184
|
||||
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||
internal static ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
bool flag = Resources.resourceMan == null;
|
||||
if (flag)
|
||||
{
|
||||
ResourceManager resourceManager = new ResourceManager("ProductTool.Properties.Resources", typeof(Resources).Assembly);
|
||||
Resources.resourceMan = resourceManager;
|
||||
}
|
||||
return Resources.resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000013 RID: 19
|
||||
// (get) Token: 0x0600002F RID: 47 RVA: 0x00002FCC File Offset: 0x000011CC
|
||||
// (set) Token: 0x06000030 RID: 48 RVA: 0x00002FE3 File Offset: 0x000011E3
|
||||
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||
internal static CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return Resources.resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
Resources.resourceCulture = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000014 RID: 20
|
||||
// (get) Token: 0x06000031 RID: 49 RVA: 0x00002FEC File Offset: 0x000011EC
|
||||
internal static Bitmap 爆
|
||||
{
|
||||
get
|
||||
{
|
||||
object @object = Resources.ResourceManager.GetObject("爆", Resources.resourceCulture);
|
||||
return (Bitmap)@object;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000013 RID: 19
|
||||
private static ResourceManager resourceMan;
|
||||
|
||||
// Token: 0x04000014 RID: 20
|
||||
private static CultureInfo resourceCulture;
|
||||
}
|
||||
}
|
Binary file not shown.
|
@ -0,0 +1,45 @@
|
|||
using System;
|
||||
using Api.Framework;
|
||||
using Api.Framework.SDK;
|
||||
using Api.Framework.Tools;
|
||||
using SqlSugar;
|
||||
|
||||
namespace ProductTool
|
||||
{
|
||||
// Token: 0x02000007 RID: 7
|
||||
internal class ThreadDelete : TimerTask
|
||||
{
|
||||
// Token: 0x0600002B RID: 43 RVA: 0x00002EAC File Offset: 0x000010AC
|
||||
public override void Run(object state, bool timedOut)
|
||||
{
|
||||
this.number++;
|
||||
try
|
||||
{
|
||||
SqlSugarClient session = ApiClient.GetSession(null, true);
|
||||
bool flag = this.number % 1440 == 0;
|
||||
if (flag)
|
||||
{
|
||||
SqlSugarExtend.ExcuteSQL(session, "delete from CircleClass where sendTime<=@sendTime", new
|
||||
{
|
||||
sendTime = DateTime.Now.AddDays(-7.0)
|
||||
});
|
||||
}
|
||||
CircleClass circleClass = SqlSugarExtend.FindSingle<CircleClass>(session, "select * from CircleClass where sendTime<@nowTime order by sendTime desc limit 0,1", new
|
||||
{
|
||||
nowTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")
|
||||
});
|
||||
bool flag2 = circleClass != null;
|
||||
if (flag2)
|
||||
{
|
||||
CacheTool.GetSingleObj().Set("CircleClass", circleClass, 10);
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000012 RID: 18
|
||||
private int number = 0;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue