|
@@ -125,46 +125,16 @@ public class TestController : BaseController
|
|
|
[HttpGet("testo")]
|
|
|
public async Task<OpenResponse> TestOrigin()
|
|
|
{
|
|
|
- //var order = new Order
|
|
|
- //{
|
|
|
- // Id = "111",
|
|
|
- //};
|
|
|
- //await _queue.EnqueueConcurrentAsync("tq1", order, HttpContext.RequestAborted);
|
|
|
-
|
|
|
- //var i = await _queue.DequeueAsync<Order>("tq1", HttpContext.RequestAborted);
|
|
|
-
|
|
|
var now = DateTime.Now.ToString();
|
|
|
-
|
|
|
- //DataTable dt1 = new DataTable();
|
|
|
- //// 添加列并插入数据
|
|
|
- //dt1.Columns.Add("id", typeof(int));
|
|
|
- //dt1.Columns.Add("name", typeof(string));
|
|
|
- //dt1.Rows.Add(1, "张三");
|
|
|
- //dt1.Rows.Add(2, "李四");
|
|
|
- //DataTable dt2 = new DataTable();
|
|
|
- //// 添加列并插入数据
|
|
|
- //dt2.Columns.Add("id", typeof(int));
|
|
|
- //dt2.Columns.Add("age", typeof(int));
|
|
|
- //dt2.Rows.Add(1, 18);
|
|
|
- //dt2.Rows.Add(2, 20);
|
|
|
- //// 将 dt2 合并到 dt1 中
|
|
|
-
|
|
|
- //var a = from row1 in dt1.AsEnumerable()
|
|
|
- // join row2 in dt2.AsEnumerable() on row1["id"] equals row2["id"]
|
|
|
- // select new
|
|
|
- // {
|
|
|
- // id = row1["id"],
|
|
|
- // name = row1["name"],
|
|
|
- // age = row2["age"]
|
|
|
- // };
|
|
|
-
|
|
|
-
|
|
|
- //dt1.Merge(dt2);
|
|
|
-
|
|
|
- //await _capPublisher.PublishAsync(EventNames.HotlineOrderFlowStarted, "123", cancellationToken: HttpContext.RequestAborted);
|
|
|
return OpenResponse.Ok(now);
|
|
|
}
|
|
|
|
|
|
+ [HttpPost("rec/{userId}")]
|
|
|
+ public string TestRec([FromQuery] string userId)
|
|
|
+ {
|
|
|
+ return userId;
|
|
|
+ }
|
|
|
+
|
|
|
[HttpGet("time")]
|
|
|
[AllowAnonymous]
|
|
|
public async Task<OpenResponse> GetTime()
|
|
@@ -185,7 +155,7 @@ public class TestController : BaseController
|
|
|
|
|
|
//int a = _timeLimitDomainService.CalcWorkTime(DateTime.Now, DateTime.Parse("2023-09-11 16:21:00"));
|
|
|
//int m = _timeLimitDomainService.CalcWorkTime(DateTime.Parse("2023-09-19 12:00:00"), DateTime.Parse("2023-09-20 18:00:00"), false);
|
|
|
- var r = _timeLimitDomainService.CalcEndTime(DateTime.Parse("2024-03-07 14:09:45"), ETimeType.WorkDay,1,false,80);
|
|
|
+ var r = _timeLimitDomainService.CalcEndTime(DateTime.Parse("2024-03-07 14:09:45"), ETimeType.WorkDay, 1, false, 80);
|
|
|
//var r = _timeLimitDomainService.CalcExpiredTime(DateTime.Parse("2024-02-29 10:12:33"), Share.Enums.FlowEngine.EFlowDirection.OrgToCenter, "10");
|
|
|
//await _wfModuleDomainService.PersistenceModulesAsync(HttpContext.RequestAborted);
|
|
|
|
|
@@ -312,11 +282,4 @@ public class TestController : BaseController
|
|
|
var publicKey = keyList[1];
|
|
|
return $"{publicKey} \r\n {privateKey}";
|
|
|
}
|
|
|
-}
|
|
|
-
|
|
|
-public class Test
|
|
|
-{
|
|
|
- [SugarColumn(ColumnName = "CallID")] public string CallId { get; set; }
|
|
|
-
|
|
|
- [SugarColumn(ColumnName = "IVR")] public string Ivr { get; set; }
|
|
|
}
|