|
@@ -5,6 +5,8 @@ using System.Text;
|
|
|
using System.Text.Json;
|
|
|
using System.Threading.Tasks;
|
|
|
using TEAMModelOS.SDK.DI;
|
|
|
+using TEAMModelOS.SDK.Extension;
|
|
|
+using TEAMModelOS.SDK.Models.Cosmos.Common;
|
|
|
|
|
|
namespace TEAMModelFunction
|
|
|
{
|
|
@@ -28,23 +30,22 @@ namespace TEAMModelFunction
|
|
|
/// </data>
|
|
|
/// <param name="msg"></param>
|
|
|
/// <returns></returns>
|
|
|
- [FunctionName("Course")]
|
|
|
- public async Task StuList([ServiceBusTrigger("active-task", "course", Connection = "Azure:ServiceBus:ConnectionString")] string msg)
|
|
|
- {
|
|
|
- try
|
|
|
- {
|
|
|
- // await _dingDing.SendBotMsg($"ServiceBus,Blob(){msg}", GroupNames.醍摩豆服務運維群組);
|
|
|
- var jsonMsg = JsonDocument.Parse(msg);
|
|
|
- if (jsonMsg.RootElement.TryGetProperty("name", out JsonElement name) && name.ValueKind == JsonValueKind.String)
|
|
|
- {
|
|
|
+ //[FunctionName("Course")]
|
|
|
+ //public async Task StuList([ServiceBusTrigger("active-task", "course", Connection = "Azure:ServiceBus:ConnectionString")] string msg)
|
|
|
+ //{
|
|
|
+ // try
|
|
|
+ // {
|
|
|
+ // // await _dingDing.SendBotMsg($"ServiceBus,Blob(){msg}", GroupNames.醍摩豆服務運維群組);
|
|
|
+ // var jsonMsg = JsonDocument.Parse(msg);
|
|
|
+ // msg.ToObject<StuCourse>();
|
|
|
|
|
|
- }
|
|
|
- }
|
|
|
- catch (Exception ex)
|
|
|
- {
|
|
|
- await _dingDing.SendBotMsg($"ServiceBus,Blob()\n{ex.Message}{ex.StackTrace}", GroupNames.醍摩豆服務運維群組);
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
+ // }
|
|
|
+ // catch (Exception ex)
|
|
|
+ // {
|
|
|
+ // await _dingDing.SendBotMsg($"ServiceBus,Blob()\n{ex.Message}{ex.StackTrace}", GroupNames.醍摩豆服務運維群組);
|
|
|
+ // }
|
|
|
+ //}
|
|
|
|
|
|
}
|
|
|
}
|