Commit 3d1f7a0b by 陶然

优化

parent 6a205d74
......@@ -36,8 +36,8 @@ namespace Kivii.HumanResources.DingTalk
var begin = TaskContext.Arguments.ContainsKey("BeginTime") ? TaskContext.Arguments["BeginTime"] : string.Empty;
var end = TaskContext.Arguments.ContainsKey("EndTime") ? TaskContext.Arguments["EndTime"] : string.Empty;
var beginTime = DateTime.Now;
var endTime = DateTime.Now;
var beginTime = DateTime.Now.AddDays(-1);
var endTime = DateTime.Now.AddDays(-1);
if(!begin.IsNullOrEmpty())DateTime.TryParse(begin, out beginTime);
if (!end.IsNullOrEmpty()) DateTime.TryParse(end, out endTime);
......
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