11
This commit is contained in:
parent
cb4c3b2935
commit
ed47497d8c
@ -126,12 +126,9 @@
|
||||
<!--正式环境后台系统的API地址-->
|
||||
<!--<add key="LxmAdminApiUrl" value="http://120.78.93.13:8099" />-->
|
||||
|
||||
<add key="SysConfig" value="{"MerchantId": "00000000-0000-0000-0000-000000000009","Issuer": "lxzyl","Secret": "4ea0180d8f8c1ce11343e9104c682bc4","SendVerifyCode":"http://120.78.93.13:30000/InterfaceAPI/sendVerifyCode", "SendSms": "http://120.78.93.13:30000/InterfaceAPI/sendSmsMessage", "ApiTokenUrl": "http://localhost:8888/oauth2/token",
|
||||
"IsDev": true, "QiNiuCloudApiUrl": "http://oss-api.loonxierp.com", "CmpPayCallbackDomain": "http://bfy-api.wxbinf.com:8095"}" />
|
||||
<add key="SysConfig" value="{"MerchantId": "00000000-0000-0000-0000-000000000009","Issuer": "lxzyl","Secret": "4ea0180d8f8c1ce11343e9104c682bc4","SendVerifyCode":"http://120.78.93.13:30000/InterfaceAPI/sendVerifyCode", "SendSms": "http://120.78.93.13:30000/InterfaceAPI/sendSmsMessage", "ApiTokenUrl": "http://localhost:8888/oauth2/token", "IsDev": true, "QiNiuCloudApiUrl": "http://oss-api.loonxierp.com", "CmpPayCallbackDomain": "http://bfy-api.wxbinf.com:8095"}" />
|
||||
<add key="WechatConfig" value="{"ApiAuthDomain": "http://binfapi-test.wxbinf.com","Scope": "snsapi_base","WechatPublic": "流行美专业测试"}" />
|
||||
<add key="SmsTemplateConfig" value="{"ConsumptionSuccess":"亲爱的#Member#会员,您本次消费共#Amount#元,获得#Integral#积分;请关注【#WechatPublic#】公众号查看详情。", "ServiceFinish":"亲爱的#Member#会员,您的服务项目已经完成;请关注【#WechatPublic#】公众号,给予此次服务进行评价。",
|
||||
"RechangeSuccess": "亲爱的会员,您已成功充值#RechargeAmount#元;储值余额#Balance#元;请关注【#WechatPublic#】公众号,登录后查看储值明细。", "PreOrderSuccess": "亲爱的会员,您在#Month#月#Day#日#Shop#的服务项目已经预约成功,关注【#WechatPublic#】公众号,查看预约详情。"
|
||||
}" />
|
||||
<add key="SmsTemplateConfig" value="{"ConsumptionSuccess":"亲爱的#Member#会员,您本次消费共#Amount#元,获得#Integral#积分;请关注【#WechatPublic#】公众号查看详情。", "ServiceFinish":"亲爱的#Member#会员,您的服务项目已经完成;请关注【#WechatPublic#】公众号,给予此次服务进行评价。", "RechangeSuccess": "亲爱的会员,您已成功充值#RechargeAmount#元;储值余额#Balance#元;请关注【#WechatPublic#】公众号,登录后查看储值明细。", "PreOrderSuccess": "亲爱的会员,您在#Month#月#Day#日#Shop#的服务项目已经预约成功,关注【#WechatPublic#】公众号,查看预约详情。" }" />
|
||||
</appSettings>
|
||||
|
||||
|
||||
@ -252,6 +249,10 @@
|
||||
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
|
||||
</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" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
@ -24,6 +24,10 @@
|
||||
<assemblyIdentity name="System.Runtime.InteropServices.RuntimeInformation" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
|
||||
</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" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" /></startup></configuration>
|
||||
|
||||
@ -126,6 +126,10 @@
|
||||
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
|
||||
</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" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<system.codedom>
|
||||
|
||||
BIN
MyCode.Project.Infrastructure/Fakes/System.Net.Http.fakes
Normal file
BIN
MyCode.Project.Infrastructure/Fakes/System.Net.Http.fakes
Normal file
Binary file not shown.
@ -94,6 +94,9 @@
|
||||
<HintPath>..\packages\Unity.4.0.1\lib\net45\Microsoft.Practices.Unity.RegistrationByConvention.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.QualityTools.Testing.Fakes, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\Lib\Newtonsoft.Json.dll</HintPath>
|
||||
@ -136,7 +139,9 @@
|
||||
<Reference Include="System.Memory">
|
||||
<HintPath>..\Lib\System.Memory.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Net.Http.4.2.0.0.Fakes">
|
||||
<HintPath>FakesAssemblies\System.Net.Http.4.2.0.0.Fakes.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Numerics" />
|
||||
<Reference Include="System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Numerics.Vectors.4.4.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
|
||||
@ -151,6 +156,26 @@
|
||||
<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>
|
||||
<Private>True</Private>
|
||||
<Private>True</Private>
|
||||
</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>
|
||||
<Private>True</Private>
|
||||
<Private>True</Private>
|
||||
</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>
|
||||
<Private>True</Private>
|
||||
<Private>True</Private>
|
||||
</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>
|
||||
<Private>True</Private>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.ServiceModel" />
|
||||
<Reference Include="System.Threading.Tasks.Extensions">
|
||||
<HintPath>..\Lib\System.Threading.Tasks.Extensions.dll</HintPath>
|
||||
@ -355,6 +380,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="app.config" />
|
||||
<Fakes Include="Fakes\System.Net.Http.fakes" />
|
||||
<None Include="packages.config">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
|
||||
@ -12,6 +12,7 @@ using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
using MyCode.Project.Infrastructure.Common;
|
||||
using MyCode.Project.Infrastructure.Exceptions;
|
||||
using Org.BouncyCastle.Asn1.Ocsp;
|
||||
|
||||
namespace MyCode.Project.Infrastructure.WebPost
|
||||
{
|
||||
@ -531,12 +532,18 @@ namespace MyCode.Project.Infrastructure.WebPost
|
||||
/// <returns></returns>
|
||||
public string DoPostJson(string url, string jsonData)
|
||||
{
|
||||
// 在应用程序启动时设置(如Main方法或Application_Start)
|
||||
System.Net.ServicePointManager.SecurityProtocol =
|
||||
SecurityProtocolType.Tls12;
|
||||
string result = "";
|
||||
|
||||
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
|
||||
req.Method = "POST";
|
||||
req.Timeout = 60*1000;//设置请求超时时间,单位为毫秒
|
||||
req.ContentType = "application/json";
|
||||
req.ProtocolVersion = HttpVersion.Version11;
|
||||
req.ServicePoint.Expect100Continue = true;
|
||||
//req.ServicePoint.SecurityProtocol = SecurityProtocolType.Tls12;
|
||||
|
||||
byte[] data = Encoding.UTF8.GetBytes(jsonData);
|
||||
req.ContentLength = data.Length;
|
||||
|
||||
|
||||
@ -23,6 +23,10 @@
|
||||
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
|
||||
</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" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" /></startup></configuration>
|
||||
|
||||
@ -14,9 +14,14 @@
|
||||
<package id="System.Diagnostics.PerformanceCounter" version="4.5.0" targetFramework="net462" />
|
||||
<package id="System.IO.Pipelines" version="4.5.1" targetFramework="net461" />
|
||||
<package id="System.Memory" version="4.5.1" targetFramework="net461" />
|
||||
<package id="System.Net.Http" version="4.3.4" targetFramework="net461" />
|
||||
<package id="System.Numerics.Vectors" version="4.4.0" targetFramework="net462" />
|
||||
<package id="System.Runtime.CompilerServices.Unsafe" version="4.5.0" targetFramework="net462" />
|
||||
<package id="System.Runtime.InteropServices.RuntimeInformation" version="4.0.0" targetFramework="net45" />
|
||||
<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" />
|
||||
<package id="System.Threading.Channels" version="4.5.0" targetFramework="net462" />
|
||||
<package id="System.Threading.Tasks.Extensions" version="4.5.1" targetFramework="net461" />
|
||||
<package id="ThoughtWorks.QRCode" version="1.1.0" targetFramework="net45" />
|
||||
|
||||
@ -465,6 +465,7 @@ namespace MyCode.Project.OutSideService.Implementation
|
||||
}}";
|
||||
var webUtils = new WebUtils();
|
||||
var resp = webUtils.DoPostJson(url, json);
|
||||
LogHelper.Info(userId+"企业微信官方信息:" +resp);
|
||||
UserIdChangeOpenIdResp resut = JsonHelper.ToObject<UserIdChangeOpenIdResp>(resp);
|
||||
return resut;
|
||||
}
|
||||
|
||||
@ -19,6 +19,10 @@
|
||||
<assemblyIdentity name="System.Runtime.InteropServices.RuntimeInformation" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
|
||||
</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" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" /></startup></configuration>
|
||||
|
||||
@ -23,6 +23,10 @@
|
||||
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
|
||||
</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" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" /></startup></configuration>
|
||||
|
||||
@ -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="{"MerchantId": "00000000-0000-0000-0000-000000000009","Issuer": "lxzyl","Secret": "4ea0180d8f8c1ce11343e9104c682bc4","SendVerifyCode":"http://120.78.93.13:30000/InterfaceAPI/sendVerifyCode", "SendSms": "http://120.78.93.13:30000/InterfaceAPI/sendSmsMessage", "ApiTokenUrl": "http://localhost:8888/oauth2/token",
|
||||
"IsDev": true, "QiNiuCloudApiUrl": "http://oss-api.loonxierp.com", "CmpPayCallbackDomain": "http://bfy-api.wxbinf.com:8095"}" />
|
||||
<add key="SysConfig" value="{"MerchantId": "00000000-0000-0000-0000-000000000009","Issuer": "lxzyl","Secret": "4ea0180d8f8c1ce11343e9104c682bc4","SendVerifyCode":"http://120.78.93.13:30000/InterfaceAPI/sendVerifyCode", "SendSms": "http://120.78.93.13:30000/InterfaceAPI/sendSmsMessage", "ApiTokenUrl": "http://localhost:8888/oauth2/token", "IsDev": true, "QiNiuCloudApiUrl": "http://oss-api.loonxierp.com", "CmpPayCallbackDomain": "http://bfy-api.wxbinf.com:8095"}" />
|
||||
<add key="WechatConfig" value="{"ApiAuthDomain": "http://binfapi-test.wxbinf.com","Scope": "snsapi_base","WechatPublic": "流行美专业测试","appHtml": "https://test-dx.wxbinf.com"} " />
|
||||
|
||||
<!-- 七牛参数配置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>
|
||||
|
||||
@ -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" />
|
||||
|
||||
@ -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");
|
||||
|
||||
|
||||
@ -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>
|
||||
@ -23,6 +23,10 @@
|
||||
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
|
||||
</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" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<startup>
|
||||
|
||||
@ -84,6 +84,7 @@ namespace MyCode.Project.Services.Implementation
|
||||
{
|
||||
return;
|
||||
}
|
||||
//config.FSecret = "gb2VUPGalzEgH9iIWeI7u9GUAlFA3-hXzl2GESRxX-U";
|
||||
var infoList = _enterpriseWechatService.GetDepartmentList("", config.FAppid, config.FSecret);
|
||||
var ids = infoList.Select(x => long.Parse(x.Id.ToString())).ToList();
|
||||
var existsDepartList = _basDepartmentRepository.Queryable().Where(x => 1 == 1).ToList();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user