20221222-1

DS7Zhanhao
dengyu 2 years ago
parent 1961ef2ad7
commit deffcebe81

2
.gitignore vendored

@ -55,3 +55,5 @@ BookingJieFeng/BookingJieFeng.csproj.user
DispatchWeb/DispatchWeb.csproj.user DispatchWeb/DispatchWeb.csproj.user
DSWeb/Properties/PublishProfiles/FolderProfile.pubxml DSWeb/Properties/PublishProfiles/FolderProfile.pubxml
/DSWeb/Areas/MvcShipping/DAL/MsChFee/MsChFeeDAL.cs /DSWeb/Areas/MvcShipping/DAL/MsChFee/MsChFeeDAL.cs
/DS7GIT.rar
/WebSqlHelper/Fakes/Microsoft.Practices.EnterpriseLibrary.Common.fakes

@ -1,4 +1,5 @@
using DSWeb.Areas.Dispatch.Helper; using AlibabaCloud.SDK.Dingtalkh5package_1_0.Models;
using DSWeb.Areas.Dispatch.Helper;
using DSWeb.Areas.MvcShipping.DB; using DSWeb.Areas.MvcShipping.DB;
using DSWeb.Areas.MvcShipping.Job; using DSWeb.Areas.MvcShipping.Job;
using log4net; using log4net;
@ -9,6 +10,7 @@ using System.Configuration;
using System.Linq; using System.Linq;
using System.Runtime.Caching; using System.Runtime.Caching;
using System.Web; using System.Web;
using Tea;
namespace DSWeb.Areas.MvcShipping.Helper namespace DSWeb.Areas.MvcShipping.Helper
{ {
@ -67,8 +69,45 @@ namespace DSWeb.Areas.MvcShipping.Helper
public class DingTalkAuditHelper { public class DingTalkAuditHelper {
private public static AlibabaCloud.SDK.Dingtalkoauth2_1_0.Client CreateClient()
{
AlibabaCloud.OpenApiClient.Models.Config config = new AlibabaCloud.OpenApiClient.Models.Config();
config.Protocol = "https";
config.RegionId = "central";
return new AlibabaCloud.SDK.Dingtalkoauth2_1_0.Client(config);
}
public static void GetToken() {
AlibabaCloud.SDK.Dingtalkoauth2_1_0.Client client = CreateClient();
AlibabaCloud.SDK.Dingtalkoauth2_1_0.Models.GetSsoAccessTokenRequest getSsoAccessTokenRequest = new AlibabaCloud.SDK.Dingtalkoauth2_1_0.Models.GetSsoAccessTokenRequest
{
Corpid = "ding7f22510fcf025d5424f2f5cc6abecb85",
SsoSecret = "LPHtv90gkqmq-fzQ3i36vUNaOtSS39SmtdpsUgQaQbJStHoaWey2na9Pu6_SmCCp",
};
try
{
client.GetSsoAccessToken(getSsoAccessTokenRequest);
var _rstr=client.ToString();
} }
catch (TeaException err)
{
if (!AlibabaCloud.TeaUtil.Common.Empty(err.Code) && !AlibabaCloud.TeaUtil.Common.Empty(err.Message))
{
// err 中含有 code 和 message 属性,可帮助开发定位问题
}
}
catch (Exception _err)
{
TeaException err = new TeaException(new Dictionary<string, object>
{
{ "message", _err.Message }
});
if (!AlibabaCloud.TeaUtil.Common.Empty(err.Code) && !AlibabaCloud.TeaUtil.Common.Empty(err.Message))
{
// err 中含有 code 和 message 属性,可帮助开发定位问题
}
}
}
}
} }

@ -28,7 +28,7 @@ namespace Job_Get_FanWeiDeE9
public class Job_Get_FanWeiDeE9 : IJob public class Job_Get_FanWeiDeE9 : IJob
{ {
private ILog log = LogManager.GetLogger(typeof(Job_Bosch_FTP)); private ILog log = LogManager.GetLogger(typeof(Job_Get_FanWeiDeE9));
//private string connStr { get; set; } //private string connStr { get; set; }
private const string admin_userid = "1BEC90E1-9780-472F-90C2-0C6390C044A4"; private const string admin_userid = "1BEC90E1-9780-472F-90C2-0C6390C044A4";

@ -79,8 +79,9 @@
<Reference Include="MimeKit, Version=2.9.0.0, Culture=neutral, PublicKeyToken=bede1c8a46c66814, processorArchitecture=MSIL"> <Reference Include="MimeKit, Version=2.9.0.0, Culture=neutral, PublicKeyToken=bede1c8a46c66814, processorArchitecture=MSIL">
<HintPath>..\packages\MimeKit.2.9.2\lib\net45\MimeKit.dll</HintPath> <HintPath>..\packages\MimeKit.2.9.2\lib\net45\MimeKit.dll</HintPath>
</Reference> </Reference>
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"> <Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.12.0.2\lib\net40\Newtonsoft.Json.dll</HintPath> <SpecificVersion>False</SpecificVersion>
<HintPath>..\DSWeb\bin\Newtonsoft.Json.dll</HintPath>
</Reference> </Reference>
<Reference Include="Quartz, Version=2.6.2.0, Culture=neutral, PublicKeyToken=f6b8c98a402cc8a4, processorArchitecture=MSIL"> <Reference Include="Quartz, Version=2.6.2.0, Culture=neutral, PublicKeyToken=f6b8c98a402cc8a4, processorArchitecture=MSIL">
<HintPath>..\packages\Quartz.2.6.2\lib\net40\Quartz.dll</HintPath> <HintPath>..\packages\Quartz.2.6.2\lib\net40\Quartz.dll</HintPath>

Loading…
Cancel
Save