优化发送邮件

This commit is contained in:
不做码农
2022-01-02 15:56:23 +08:00
parent cf27c7115c
commit e88d4d24c3
7 changed files with 93 additions and 84 deletions

View File

@@ -55,7 +55,7 @@ namespace ZR.Tasks
//{ "quartz.jobStore.driverDelegateType", "Quartz.Impl.AdoJobStore.MySQLDelegate, Quartz"},
//{ "quartz.jobStore.useProperties", "true"},
//{ "quartz.jobStore.dataSource", "myDS" },
//{ "quartz.dataSource.myDS.connectionString", @"server=118.24.27.111;port=3306;database=zrryAdmin;uid=zrry;pwd=@zrry1993^Hz;Charset=utf8;"},
//{ "quartz.dataSource.myDS.connectionString", @"server=xxx.xxx.xxx.xxx;port=3306;database=Admin;uid=zrry;pwd=********;Charset=utf8;"},
//{ "quartz.dataSource.myDS.provider", "MySql" },
};
@@ -277,7 +277,7 @@ namespace ZR.Tasks
//防止创建时存在数据问题 先移除,然后在执行创建操作
await _scheduler.Result.DeleteJob(jobKey);
}
await AddTaskScheduleAsync(tasksQz);
//await AddTaskScheduleAsync(tasksQz);
return ApiResult.Success("修改计划成功");
}
catch (Exception ex)

View File

@@ -11,7 +11,6 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Infrastructure\Infrastructure.csproj" />
<ProjectReference Include="..\ZR.Model\ZR.Model.csproj" />
<ProjectReference Include="..\ZR.Service\ZR.Service.csproj" />
</ItemGroup>