Commit 6052c764 by shuhu.hou@freemud.cn

add wechat open id mapping windows service

parent c4ae4766
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add name="db_master" connectionString="server=115.159.142.32,9528;initial catalog=Today_WechatPay;uid=zhuihutest;password=zhuihutest@freemud;application name=zhuihuapi;Max Pool Size=512" />
</connectionStrings>
<appSettings>
<add key="db_master" value="db_master"/>
<add key="Woaap_appid" value="wx4ed9e1f4e0f3eeb0"/>
<add key="Woaap_appkey" value="99e1081996c4cf4c5c3cd4afcfbeaf0e"/>
<add key="Woaap_getackey_url" value="http://woaapapi.etocrm.com/api/ackey?appid=wx4ed9e1f4e0f3eeb0&amp;appkey=99e1081996c4cf4c5c3cd4afcfbeaf0e"/>
<add key="Woaap_getuserinfo_url" value="http://woaapapi.etocrm.com/api/userinfo?ackey={0}&amp;openid={1}&amp;lang=zh_CN"/>
</appSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FreeMud.Quartz.WechatIDMapping.DomainModel
{
public class WechatIDMappingDM
{
public long ID { get; set; }
public string OpenId { get; set; }
public string Unionid { get; set; }
public int State { get; set; }
public DateTime CreateTime { get; set; }
public DateTime UpdateTime { get; set; }
}
}
namespace FreeMud.Quartz.WechatIDMapping
{
partial class Form1
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.txt_Openid = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.btn_mappingUnionId = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// txt_Openid
//
this.txt_Openid.Location = new System.Drawing.Point(102, 47);
this.txt_Openid.Name = "txt_Openid";
this.txt_Openid.Size = new System.Drawing.Size(223, 21);
this.txt_Openid.TabIndex = 0;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(45, 50);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(47, 12);
this.label1.TabIndex = 1;
this.label1.Text = "Openid:";
//
// btn_mappingUnionId
//
this.btn_mappingUnionId.Location = new System.Drawing.Point(102, 103);
this.btn_mappingUnionId.Name = "btn_mappingUnionId";
this.btn_mappingUnionId.Size = new System.Drawing.Size(114, 28);
this.btn_mappingUnionId.TabIndex = 2;
this.btn_mappingUnionId.Text = "匹配UnionId";
this.btn_mappingUnionId.UseVisualStyleBackColor = true;
this.btn_mappingUnionId.Click += new System.EventHandler(this.btn_mappingUnionId_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(372, 262);
this.Controls.Add(this.btn_mappingUnionId);
this.Controls.Add(this.label1);
this.Controls.Add(this.txt_Openid);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox txt_Openid;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btn_mappingUnionId;
}
}
using FreeMud.Quartz.WechatIDMapping.Repository;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace FreeMud.Quartz.WechatIDMapping
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void btn_mappingUnionId_Click(object sender, EventArgs e)
{
//var list = WechatIDMappingRepository.GetNoMatchList();
//var mapping = WechatIDMappingRepository.GetWechatByOpenid(txt_Openid.Text.Trim());
var unionid = WoaapService.GetUnionId(txt_Openid.Text.Trim());
//if (!string.IsNullOrEmpty(unionid))
//{
// WechatIDMappingRepository.UpdateUnionId(mapping.ID, unionid);
//}
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" 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>{CA774075-0E4C-41E7-AA6B-AD044ED8B145}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>FreeMud.Quartz.WechatIDMapping</RootNamespace>
<AssemblyName>FreeMud.Quartz.WechatIDMapping</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</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="BLToolkit.4">
<HintPath>..\..\packages\BLToolkit.4.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Quartz">
<HintPath>..\..\packages\Quartz.2.2.2\lib\net40\Quartz.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Web" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="DomainModel\WechatIDMappingDM.cs" />
<Compile Include="MappingUnionIdJob.cs" />
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Model\ACKeyModel.cs" />
<Compile Include="Model\UserInfoModel.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Repository\ClusterConfig.cs" />
<Compile Include="Repository\WechatIDMappingRepository.cs" />
<Compile Include="Utility\Cache.cs" />
<Compile Include="Utility\Config.cs" />
<Compile Include="Utility\DbManagerExtension.cs" />
<Compile Include="Utility\HttpTool.cs" />
<Compile Include="Utility\JsonUtility.cs" />
<Compile Include="Utility\Logger.cs" />
<Compile Include="WoaapService.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\ZhuiHu.Common\ZhuiHu.Common.csproj">
<Project>{82F953FA-7FE1-4FE8-8D40-19801A544C81}</Project>
<Name>ZhuiHu.Common</Name>
</ProjectReference>
<ProjectReference Include="..\FreeMud.Quartz.CommonJobs\FreeMud.Quartz.CommonJobs.csproj">
<Project>{badcb805-f0f8-4cd3-a8f9-f53da63e5b9a}</Project>
<Name>FreeMud.Quartz.CommonJobs</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="quartz_jobs.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
\ No newline at end of file
using FreeMud.Quartz.CommonJobs;
using FreeMud.Quartz.WechatIDMapping.DomainModel;
using FreeMud.Quartz.WechatIDMapping.Repository;
using FreeMud.Quartz.WechatIDMapping.Utility;
using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using ZhuiHu.Common;
namespace FreeMud.Quartz.WechatIDMapping
{
[DisallowConcurrentExecution]
public class MappingUnionIdJob : JobBase
{
public override void Execute(IJobExecutionContext context)
{
Run();
base.Execute(context);
}
void Run()
{
var list = WechatIDMappingRepository.GetNoMatchList();
if (CommonConfig.GetBool("parallet_enable"))
{
ConfigBasedRunner.InitializeThreadPool();
Parallel.ForEach(list, c => DoMapping(c));
}
else
{
foreach (var one in list)
{
DoMapping(one);
}
}
}
public void DoMapping(string openId)
{
try
{
var unionid = WoaapService.GetUnionId(openId);
if (!string.IsNullOrEmpty(unionid))
{
WechatIDMappingRepository.UpdateUnionId(openId, unionid, 1);
}
else
{
WechatIDMappingRepository.UpdateUnionId(openId, unionid, 2);
}
}
catch (Exception ex)
{
Utility.Logger.Error(ex);
}
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FreeMud.Quartz.WechatIDMapping.Model
{
public class ACKeyRequestModel
{
public string appid { get; set; }
public string appkey { get; set; }
}
public class ACKeyResponseModel
{
public string errcode { get; set; }
public string ackey { get; set; }
public int expires_in { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FreeMud.Quartz.WechatIDMapping.Model
{
public class UserInfoModel
{
/// <summary>
/// 用户是否订阅该公众号标识,值为 0 时,代表此用户没有关注该公众号,拉取不到其余信息。
/// </summary>
public int subscribe { get; set; }
public string openid { get; set; }
public string nickname { get; set; }
/// <summary>
/// 用户的性别,值为 1 时是男性,值为 2 时是女性,值为 0 时是未知
/// </summary>
public int sex { get; set; }
public string city { get; set; }
public string country { get; set; }
public string province { get; set; }
public string language { get; set; }
public string headimgurl { get; set; }
public string subscribe_time { get; set; }
public string unionid { get; set; }
public string remark { get; set; }
public string groupid { get; set; }
public string errcode { get; set; }
public string errmsg { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace FreeMud.Quartz.WechatIDMapping
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("FreeMud.Quartz.WechatIDMapping")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("FreeMud.Quartz.WechatIDMapping")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
//将 ComVisible 设置为 false 将使此程序集中的类型
//对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("ca774075-0e4c-41e7-aa6b-ad044ed8b145")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
// 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本: 4.0.30319.42000
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace FreeMud.Quartz.WechatIDMapping.Properties
{
/// <summary>
/// 强类型资源类,用于查找本地化字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// 返回此类使用的缓存 ResourceManager 实例。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("FreeMud.Quartz.WechatIDMapping.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// 覆盖当前线程的 CurrentUICulture 属性
/// 使用此强类型的资源类的资源查找。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace FreeMud.Quartz.WechatIDMapping.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>
using BLToolkit.Data;
using FreeMud.Quartz.WechatIDMapping.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FreeMud.Quartz.WechatIDMapping.Repository
{
public class ClusterConfig
{
internal static string db_master_config = Config.GetString("db_master");
public static DbManager CreateDbManager4Master()
{
return new DbManager(db_master_config);
}
}
}
using FreeMud.Quartz.WechatIDMapping.DomainModel;
using FreeMud.Quartz.WechatIDMapping.Utility;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FreeMud.Quartz.WechatIDMapping.Repository
{
public class WechatIDMappingRepository
{
public static List<string> GetNoMatchList()
{
var command = @"SELECT TOP 1000 [Openid]
FROM [dbo].[temp_openid_20180821_20180823] WITH (NOLOCK)
WHERE [State]=0 and (Unionid is null or Unionid='')";
using (var db = ClusterConfig.CreateDbManager4Master())
{
return db.SetCommand(command).ExecuteScalarList<string>();
}
}
public static WechatIDMappingDM GetWechatByOpenid(string openid)
{
var command = @"SELECT TOP 1
[ID] ,
[Openid] ,
[Unionid] ,
[State] ,
[CreateTime] ,
[UpdateTime]
FROM [dbo].[MCD_Pay_Micropay_Openid_Unionid] WITH ( NOLOCK )
WHERE [State] = 0 AND OpenId=@OpenId";
using (var db = ClusterConfig.CreateDbManager4Master())
{
return db.SetCommand(command,
db.ParameterEx("@OpenId", openid, DbType.String, 64)).ExecuteObject<WechatIDMappingDM>();
}
}
public static void UpdateUnionId(string openid, string unionid, int state)
{
var command = @"UPDATE dbo.temp_openid_20180821_20180823
SET State=@State,Unionid=@Unionid
WHERE Openid=@Openid";
using (var db = ClusterConfig.CreateDbManager4Master())
{
db.SetCommand(command,
db.ParameterEx("@Unionid", unionid, DbType.AnsiString, 64),
db.ParameterEx("@UpdateTime", DateTime.Now, DbType.DateTime),
db.ParameterEx("@State", state, DbType.Int16),
db.ParameterEx("@Openid", openid, DbType.AnsiString, 64)).ExecuteNonQuery();
}
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FreeMud.Quartz.WechatIDMapping.Utility
{
public class Cache<TKey, TValue> where TValue : class
{
private System.Web.Caching.Cache internalCache;
private string setName;
private static object NullObject = new object();
public TimeSpan Expires { get; private set; }
public Func<TKey, TValue> OnMissing { get; private set; }
public Cache(string setName, TimeSpan expries, Func<TKey, TValue> onMissing)
{
try
{
this.internalCache = System.Web.HttpRuntime.Cache;
}
catch (Exception ex)
{
Logger.Warn(ex);
this.internalCache = new System.Web.Caching.Cache();
}
this.setName = setName;
this.Expires = expries;
this.OnMissing = onMissing;
}
public void Remove(TKey key)
{
var internalKey = MakeKey(key);
this.internalCache.Remove(internalKey);
}
public void Insert(TKey key, TValue value)
{
var internalKey = MakeKey(key);
InternalInsert(internalKey, value);
}
public TValue Get(TKey key)
{
var internalKey = MakeKey(key);
var cachedObject = internalCache.Get(internalKey);
if (cachedObject == NullObject)
{
return null;
}
if (cachedObject != null)
{
return cachedObject as TValue;
}
if (this.OnMissing == null)
{
return null;
}
lock (this)
{
cachedObject = internalCache.Get(internalKey);
if (cachedObject == NullObject)
{
return null;
}
if (cachedObject != null)
{
return cachedObject as TValue;
}
else
{
cachedObject = OnMissing(key);
this.InternalInsert(internalKey, (cachedObject == null) ? NullObject : cachedObject);
return cachedObject as TValue;
}
}
}
private void InternalInsert(string key, object value)
{
internalCache.Insert(key, value, null, DateTime.Now.Add(this.Expires), TimeSpan.Zero);
}
private string MakeKey(TKey key)
{
return "freemud#" + this.setName + "#" + key + "#";
}
}
}
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FreeMud.Quartz.WechatIDMapping.Utility
{
public class Config
{
public static string Woaap_appid = GetString("Woaap_appid");
public static string Woaap_appkey = GetString("Woaap_appkey");
public static string Woaap_getackey_url = GetString("Woaap_getackey_url");
public static string Woaap_getuserinfo_url = GetString("Woaap_getuserinfo_url");
public static string GetString(string key)
{
return ConfigurationManager.AppSettings[key] ?? string.Empty;
}
public static int GetInt32(string key, int defalutValue = 0)
{
var value = GetString(key);
int ret;
return int.TryParse(value, out ret) ? ret : defalutValue;
}
}
}
using BLToolkit.Data;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FreeMud.Quartz.WechatIDMapping.Utility
{
public static class DbManagerExtension
{
public static IDbDataParameter ParameterEx(this DbManager dbManager, string parameterName)
{
return dbManager.Parameter(parameterName);
}
//public static IDbDataParameter ParameterEx(this DbManager dbManager, string parameterName, DbType dbType)
//{
// return dbManager.Parameter(parameterName, dbType);
//}
public static IDbDataParameter ParameterEx(this DbManager dbManager, string parameterName, object value)
{
return dbManager.Parameter(parameterName, value ?? Convert.DBNull);
}
//public static IDbDataParameter ParameterEx(this DbManager dbManager, string parameterName, DbType dbType, int size)
//{
// return dbManager.Parameter(parameterName, dbType, size);
//}
public static IDbDataParameter ParameterEx(this DbManager dbManager, string parameterName, object value, DbType dbType)
{
return dbManager.Parameter(parameterName, value ?? Convert.DBNull, dbType);
}
public static IDbDataParameter ParameterEx(this DbManager dbManager, string parameterName, object value, DbType dbType, int size)
{
return dbManager.Parameter(parameterName, value ?? Convert.DBNull, dbType, size);
}
public static DbManager SetSpCommandEx(this DbManager dbManager, string spName, params object[] commandParameters)
{
return dbManager.SetSpCommand(spName, false, commandParameters);
}
public static DbManager SetCommandWithInParameters<T>(this DbManager dbManager, string commandText, T[] inParameterValues, DbType dbType, int size, params IDbDataParameter[] commandParameters)
{
var sb = new StringBuilder();
var allParameters = new List<IDbDataParameter>(commandParameters);
for (int i = 0; i < inParameterValues.Length; i++)
{
var parameterName = "@p" + i.ToString();
if (i > 0)
{
sb.Append(",");
}
sb.Append(parameterName);
allParameters.Add(dbManager.ParameterEx(parameterName, inParameterValues[i], dbType, size));
}
var newCommandText = string.Format(commandText, sb.ToString());
return dbManager.SetCommand(newCommandText, allParameters.ToArray());
}
}
}
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
namespace FreeMud.Quartz.WechatIDMapping.Utility
{
public class HttpTool
{
public static string Post(string url, string requestData, Encoding encoding, string contentType = "application/x-www-form-urlencoded", string cerfile = null, string cerPassword = null)
{
if (encoding == null)
{
encoding = Encoding.UTF8;
}
byte[] bytesRequestData = encoding.GetBytes(requestData);
//设置HttpWebRequest基本信息
HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(url);
req.Method = "POST";
req.ContentType = contentType;
req.KeepAlive = false;
req.ServicePoint.Expect100Continue = false;
if (url.StartsWith("https", StringComparison.OrdinalIgnoreCase))
{
req.ServerCertificateValidationCallback += (a, b, c, d) =>
{
return true;
// return d == SslPolicyErrors.None;
};
if (!string.IsNullOrWhiteSpace(cerfile))
{
X509Certificate2 cer = new X509Certificate2(cerfile, cerPassword);
req.ClientCertificates.Add(cer);
// File.AppendAllText(@"D:\ZhuiHu\ZhuiHuAPI_Notify_Sandbox\log\cerlog.txt", DateTime.Now+":"+cer.ToString() + "\r\n");
}
}
//填充POST数据
req.ContentLength = bytesRequestData.Length;
Stream requestStream = req.GetRequestStream();
requestStream.Write(bytesRequestData, 0, bytesRequestData.Length);
requestStream.Close();
//发送POST数据请求服务器
HttpWebResponse HttpWResp = (HttpWebResponse)req.GetResponse();
using (Stream myStream = HttpWResp.GetResponseStream())
{
//获取服务器返回信息
using (StreamReader reader = new StreamReader(myStream, encoding))
{
return reader.ReadToEnd();
}
}
}
public static string Get(string url, Encoding encoding = null, string contentType = null, string cerfile = null, string cerPassword = null)
{
if (encoding == null)
{
encoding = Encoding.UTF8;
}
//设置HttpWebRequest基本信息
HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(url);
req.Method = "GET";
req.ContentType = contentType;
req.ServerCertificateValidationCallback = (a, b, c, d) => true;
req.KeepAlive = false;
req.ServicePoint.Expect100Continue = false;
if (url.StartsWith("https", StringComparison.OrdinalIgnoreCase))
{
// req.ServerCertificateValidationCallback += (a, b, c, d) => d == SslPolicyErrors.None;
if (!string.IsNullOrWhiteSpace(cerfile))
{
X509Certificate2 cer = new X509Certificate2(cerfile, cerPassword);
req.ClientCertificates.Add(cer);
// File.AppendAllText(@"D:\ZhuiHu\ZhuiHuAPI_Notify_Sandbox\log\cerlog.txt", DateTime.Now+":"+cer.ToString() + "\r\n");
}
}
//发送POST数据请求服务器
HttpWebResponse HttpWResp = (HttpWebResponse)req.GetResponse();
using (Stream myStream = HttpWResp.GetResponseStream())
{
//获取服务器返回信息
using (StreamReader reader = new StreamReader(myStream, encoding))
{
return reader.ReadToEnd();
}
}
}
}
}
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FreeMud.Quartz.WechatIDMapping.Utility
{
public static class JsonUtility
{
public static string ToJson(object obj, bool indented = false)
{
var setting = new JsonSerializerSettings
{
Formatting = indented ? Formatting.Indented : Formatting.None,
NullValueHandling = NullValueHandling.Ignore,
};
return JsonConvert.SerializeObject(obj, setting);
}
public static T ToObject<T>(string json) where T : class
{
return JsonConvert.DeserializeObject<T>(json);
}
}
}
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FreeMud.Quartz.WechatIDMapping.Utility
{
public class Logger
{
public static void Critical(string message)
{
Write(LoggerLevel.Critical, message);
}
public static void Error(string message)
{
Write(LoggerLevel.Error, message);
}
public static void Error(Exception ex)
{
Write(LoggerLevel.Error, ex.ToString());
}
public static void Warn(string message)
{
Write(LoggerLevel.Warn, message);
}
public static void Warn(Exception ex)
{
Write(LoggerLevel.Warn, ex.ToString());
}
public static void Info(string message)
{
Write(LoggerLevel.Info, message);
}
public static void Info(Exception ex)
{
Write(LoggerLevel.Info, ex.ToString());
}
public static void Write(LoggerLevel level, string message)
{
var sb = new StringBuilder();
sb.Append(DateTime.Now.ToString());
sb.Append("\t");
sb.Append(level);
sb.Append("\r\n");
sb.Append(message);
FileLog(level, sb.ToString() + "\r\n");
}
private static void FileLog(LoggerLevel level, string log)
{
try
{
File.AppendAllText(GetLogPath(level), log);
}
catch (Exception ex)
{
Trace.WriteLine(ex);
}
}
private static string GetLogPath(LoggerLevel level)
{
var dir = Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "log");
if (!Directory.Exists(dir))
{
Directory.CreateDirectory(dir);
}
var fileName = DateTime.Now.ToString("yyyyMMdd") + level.ToString() + ".log";
return Path.Combine(dir, fileName);
}
public enum LoggerLevel
{
Info,
Warn,
Error,
Critical,
}
}
}
using FreeMud.Quartz.WechatIDMapping.Model;
using FreeMud.Quartz.WechatIDMapping.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FreeMud.Quartz.WechatIDMapping
{
public static class WoaapService
{
private static Cache<string, ACKeyResponseModel> getACKeyCache =
new Cache<string, ACKeyResponseModel>("getStoreExtend", new TimeSpan(0, 30, 0), GetACKeyInternal);
public static ACKeyResponseModel GetACKey()
{
return getACKeyCache.Get("ackey");
}
public static string GetUnionId(string openid)
{
try
{
var ack = GetACKey().ackey;
var real_url = string.Format(Config.Woaap_getuserinfo_url, ack, openid);
var respone = HttpTool.Get(real_url);
Logger.Info("Url is :\r\n" + real_url + "\r\n" + "Response is :\r\n" + respone);
var userinfo = JsonUtility.ToObject<UserInfoModel>(respone);
if(!string.IsNullOrEmpty(userinfo.errcode))
{
Logger.Error(string.Format("获取uionid失败,openid为:{0},返回:{1}",openid,respone));
}
return userinfo.unionid;
}
catch (Exception ex)
{
Logger.Error(ex);
}
return "";
}
private static ACKeyResponseModel GetACKeyInternal(string request)
{
var respone = HttpTool.Get(Config.Woaap_getackey_url);
Logger.Info("GetACKeyInternal Url is :\r\n" + Config.Woaap_getackey_url + "\r\n" + "Response is :\r\n" + respone);
return JsonUtility.ToObject<ACKeyResponseModel>(respone);
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<connectionStrings>
<add name="db_master" connectionString="server=115.159.142.32,9528;initial catalog=Today_WechatPay;uid=zhuihutest;password=zhuihutest@freemud;application name=zhuihuapi;Max Pool Size=512" />
</connectionStrings>
<appSettings>
<add key="db_master" value="db_master" />
<add key="Woaap_appid" value="wx4ed9e1f4e0f3eeb0" />
<add key="Woaap_appkey" value="99e1081996c4cf4c5c3cd4afcfbeaf0e" />
<add key="Woaap_getackey_url" value="http://woaapapi.etocrm.com/api/ackey?appid=wx4ed9e1f4e0f3eeb0&amp;appkey=99e1081996c4cf4c5c3cd4afcfbeaf0e" />
<add key="Woaap_getuserinfo_url" value="http://woaapapi.etocrm.com/api/userinfo?ackey={0}&amp;openid={1}&amp;lang=zh_CN" />
</appSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
<?xml version="1.0" encoding="utf-8" ?>
<job-scheduling-data xmlns="http://quartznet.sourceforge.net/JobSchedulingData"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0"
xsi:noNamespaceSchemaLocation="job_scheduling_data_2_0.xsd">
<schedule>
<job>
<name>FreeMud.Quartz.WechatIDMapping_MappingUnionIdJob</name>
<group>FreeMud.Quartz.WechatIDMapping_MappingUnionIdJob</group>
<description></description>
<job-type>FreeMud.Quartz.WechatIDMapping.MappingUnionIdJob,FreeMud.Quartz.WechatIDMapping</job-type>
<durable>true</durable>
<recover>true</recover>
</job>
<trigger>
<simple>
<name>FreeMud.Quartz.WechatIDMapping_MappingUnionIdJob</name>
<group>FreeMud.Quartz.WechatIDMapping_MappingUnionIdJob</group>
<description></description>
<job-name>FreeMud.Quartz.WechatIDMapping_MappingUnionIdJob</job-name>
<job-group>FreeMud.Quartz.WechatIDMapping_MappingUnionIdJob</job-group>
<misfire-instruction>SmartPolicy</misfire-instruction>
<repeat-count>-1</repeat-count>
<!--monitor it every second-->
<repeat-interval>1000</repeat-interval>
</simple>
</trigger>
</schedule>
</job-scheduling-data>
\ No newline at end of file
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\bin\Debug\quartz_jobs.xml
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\bin\Debug\FreeMud.Quartz.WechatIDMapping.exe.config
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\bin\Debug\FreeMud.Quartz.WechatIDMapping.exe
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\bin\Debug\FreeMud.Quartz.WechatIDMapping.pdb
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\bin\Debug\BLToolkit.4.dll
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\bin\Debug\FreeMud.Quartz.CommonJobs.dll
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\bin\Debug\Newtonsoft.Json.dll
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\bin\Debug\Quartz.dll
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\bin\Debug\ZhuiHu.Common.dll
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\bin\Debug\StackExchange.Redis.dll
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\bin\Debug\Antlr3.StringTemplate.dll
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\bin\Debug\Freemud.dll
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\bin\Debug\ZhuiHu.Common.pdb
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\bin\Debug\FreeMud.Quartz.CommonJobs.pdb
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\bin\Debug\Newtonsoft.Json.xml
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\bin\Debug\Quartz.pdb
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\bin\Debug\Quartz.xml
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\bin\Debug\StackExchange.Redis.xml
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\bin\Debug\Antlr3.StringTemplate.pdb
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\bin\Debug\Freemud.pdb
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\obj\Debug\FreeMud.Quartz.WechatIDMapping.csprojResolveAssemblyReference.cache
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\obj\Debug\FreeMud.Quartz.WechatIDMapping.csproj.FreeMud.Quartz.WechatIDMapping.exe.config
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\obj\Debug\FreeMud.Quartz.WechatIDMapping.Form1.resources
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\obj\Debug\FreeMud.Quartz.WechatIDMapping.Properties.Resources.resources
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\obj\Debug\FreeMud.Quartz.WechatIDMapping.csproj.GenerateResource.Cache
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\obj\Debug\FreeMud.Quartz.WechatIDMapping.exe
C:\Work\GitFolder\VeGGet\FreeMud.Quartz\FreeMud.Quartz.WechatIDMapping\obj\Debug\FreeMud.Quartz.WechatIDMapping.pdb
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<connectionStrings>
<add name="db_master" connectionString="server=115.159.142.32,9528;initial catalog=Today_WechatPay;uid=zhuihutest;password=zhuihutest@freemud;application name=zhuihuapi;Max Pool Size=512" />
</connectionStrings>
<appSettings>
<add key="db_master" value="db_master" />
<add key="Woaap_appid" value="wx4ed9e1f4e0f3eeb0" />
<add key="Woaap_appkey" value="99e1081996c4cf4c5c3cd4afcfbeaf0e" />
<add key="Woaap_getackey_url" value="http://woaapapi.etocrm.com/api/ackey?appid=wx4ed9e1f4e0f3eeb0&amp;appkey=99e1081996c4cf4c5c3cd4afcfbeaf0e" />
<add key="Woaap_getuserinfo_url" value="http://woaapapi.etocrm.com/api/userinfo?ackey={0}&amp;openid={1}&amp;lang=zh_CN" />
</appSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Newtonsoft.Json" version="10.0.3" targetFramework="net452" />
</packages>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" ?>
<job-scheduling-data xmlns="http://quartznet.sourceforge.net/JobSchedulingData"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0"
xsi:noNamespaceSchemaLocation="job_scheduling_data_2_0.xsd">
<schedule>
<job>
<name>FreeMud.Quartz.WechatIDMapping_MappingUnionIdJob</name>
<group>FreeMud.Quartz.WechatIDMapping_MappingUnionIdJob</group>
<description></description>
<job-type>FreeMud.Quartz.WechatIDMapping.MappingUnionIdJob,FreeMud.Quartz.WechatIDMapping</job-type>
<durable>true</durable>
<recover>true</recover>
</job>
<trigger>
<simple>
<name>FreeMud.Quartz.WechatIDMapping_MappingUnionIdJob</name>
<group>FreeMud.Quartz.WechatIDMapping_MappingUnionIdJob</group>
<description></description>
<job-name>FreeMud.Quartz.WechatIDMapping_MappingUnionIdJob</job-name>
<job-group>FreeMud.Quartz.WechatIDMapping_MappingUnionIdJob</job-group>
<misfire-instruction>SmartPolicy</misfire-instruction>
<repeat-count>-1</repeat-count>
<!--monitor it every second-->
<repeat-interval>1000</repeat-interval>
</simple>
</trigger>
</schedule>
</job-scheduling-data>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment