This commit is contained in:
2025-08-30 13:53:59 +08:00
parent cb4c3b2935
commit ed47497d8c
17 changed files with 116 additions and 18 deletions

View File

@@ -16,7 +16,7 @@
<connectionStrings>
<!--新测试环境数据库 -->
<add name="MasterConn" connectionString="Data Source=127.0.0.1; Initial Catalog=AIS20250304232155; User ID=sa;Password=1; Connect Timeout=120; MultipleActiveResultSets=True;App=bfy" providerName="System.Data.SqlClient" />
<add name="MasterConn" connectionString="Data Source=127.0.0.1; Initial Catalog=AIS20231008220038; User ID=sa;Password=sa.123; Connect Timeout=120; MultipleActiveResultSets=True;App=bfy" providerName="System.Data.SqlClient" />
<!--正式主库的链接地址-->
@@ -102,8 +102,7 @@
<!--主键生成的最后一个数字-->
<add key="IdLastNum" value="1" />
<add key="MerchantId" value="00000000-0000-0000-0000-000000000000" />
<add key="SysConfig" value="{&quot;MerchantId&quot;: &quot;00000000-0000-0000-0000-000000000009&quot;,&quot;Issuer&quot;: &quot;lxzyl&quot;,&quot;Secret&quot;: &quot;4ea0180d8f8c1ce11343e9104c682bc4&quot;,&quot;SendVerifyCode&quot;:&quot;http://120.78.93.13:30000/InterfaceAPI/sendVerifyCode&quot;, &quot;SendSms&quot;: &quot;http://120.78.93.13:30000/InterfaceAPI/sendSmsMessage&quot;, &quot;ApiTokenUrl&quot;: &quot;http://localhost:8888/oauth2/token&quot;,
&quot;IsDev&quot;: true, &quot;QiNiuCloudApiUrl&quot;: &quot;http://oss-api.loonxierp.com&quot;, &quot;CmpPayCallbackDomain&quot;: &quot;http://bfy-api.wxbinf.com:8095&quot;}" />
<add key="SysConfig" value="{&quot;MerchantId&quot;: &quot;00000000-0000-0000-0000-000000000009&quot;,&quot;Issuer&quot;: &quot;lxzyl&quot;,&quot;Secret&quot;: &quot;4ea0180d8f8c1ce11343e9104c682bc4&quot;,&quot;SendVerifyCode&quot;:&quot;http://120.78.93.13:30000/InterfaceAPI/sendVerifyCode&quot;, &quot;SendSms&quot;: &quot;http://120.78.93.13:30000/InterfaceAPI/sendSmsMessage&quot;, &quot;ApiTokenUrl&quot;: &quot;http://localhost:8888/oauth2/token&quot;, &quot;IsDev&quot;: true, &quot;QiNiuCloudApiUrl&quot;: &quot;http://oss-api.loonxierp.com&quot;, &quot;CmpPayCallbackDomain&quot;: &quot;http://bfy-api.wxbinf.com:8095&quot;}" />
<add key="WechatConfig" value="{&quot;ApiAuthDomain&quot;: &quot;http://binfapi-test.wxbinf.com&quot;,&quot;Scope&quot;: &quot;snsapi_base&quot;,&quot;WechatPublic&quot;: &quot;流行美专业测试&quot;,&quot;appHtml&quot;: &quot;https://test-dx.wxbinf.com&quot;} " />
<!-- 七牛参数配置begin -->
@@ -228,7 +227,7 @@
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
<bindingRedirect oldVersion="0.0.0.0-4.1.1.3" newVersion="4.1.1.3" />
</dependentAssembly>
</assemblyBinding>
</runtime>

View File

@@ -73,8 +73,8 @@
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Net.Http">
<HintPath>..\Lib\System.Net.Http.dll</HintPath>
<Reference Include="System.Net.Http, Version=4.1.1.3, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Net.Http.4.3.4\lib\net46\System.Net.Http.dll</HintPath>
</Reference>
<Reference Include="System.Runtime">
<HintPath>..\Lib\System.Runtime.dll</HintPath>
@@ -83,6 +83,18 @@
<HintPath>..\packages\System.Runtime.InteropServices.RuntimeInformation.4.0.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Security.Cryptography.Algorithms, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Security.Cryptography.Algorithms.4.3.0\lib\net461\System.Security.Cryptography.Algorithms.dll</HintPath>
</Reference>
<Reference Include="System.Security.Cryptography.Encoding, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Security.Cryptography.Encoding.4.3.0\lib\net46\System.Security.Cryptography.Encoding.dll</HintPath>
</Reference>
<Reference Include="System.Security.Cryptography.Primitives, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Security.Cryptography.Primitives.4.3.0\lib\net46\System.Security.Cryptography.Primitives.dll</HintPath>
</Reference>
<Reference Include="System.Security.Cryptography.X509Certificates, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Security.Cryptography.X509Certificates.4.3.0\lib\net461\System.Security.Cryptography.X509Certificates.dll</HintPath>
</Reference>
<Reference Include="System.Web" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Xml.Linq" />

View File

@@ -8,6 +8,7 @@ using MyCode.Project.Infrastructure.UnityExtensions;
using MyCode.Project.Infrastructure.Common;
using MyCode.Project.Services;
using System.Threading;
using System.Net;
namespace MyCode.Project.ScheduleTask
{
@@ -16,7 +17,23 @@ namespace MyCode.Project.ScheduleTask
static void Main(string[] args)
{
// 在应用程序启动时设置如Main方法或Application_Start
System.Net.ServicePointManager.SecurityProtocol =
SecurityProtocolType.Tls12;
// 检查.NET版本并做相应处理
if (Environment.Version.Major >= 4) // .NET 4.0+
{
try
{
// 尝试设置TLS 1.2
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
}
catch (NotSupportedException)
{
// 如果失败,可能需要安装系统更新
Console.WriteLine("您的系统需要更新以支持TLS 1.2");
}
}
JobsHelp.start(AppDomain.CurrentDomain.BaseDirectory + "/JobConfig.xml");

View File

@@ -4,5 +4,10 @@
<package id="Newtonsoft.Json" version="10.0.1" targetFramework="net45" />
<package id="Senparc.Weixin" version="4.14.0" targetFramework="net45" />
<package id="Senparc.Weixin.MP" version="14.6.3" targetFramework="net45" />
<package id="System.Net.Http" version="4.3.4" targetFramework="net461" />
<package id="System.Runtime.InteropServices.RuntimeInformation" version="4.0.0" targetFramework="net462" />
<package id="System.Security.Cryptography.Algorithms" version="4.3.0" targetFramework="net461" />
<package id="System.Security.Cryptography.Encoding" version="4.3.0" targetFramework="net461" />
<package id="System.Security.Cryptography.Primitives" version="4.3.0" targetFramework="net461" />
<package id="System.Security.Cryptography.X509Certificates" version="4.3.0" targetFramework="net461" />
</packages>