|
@@ -26,6 +26,7 @@ using DocumentFormat.OpenXml.Wordprocessing;
|
|
|
using static TEAMModelOS.Controllers.FixDataController;
|
|
|
using Microsoft.Extensions.Hosting;
|
|
|
using Microsoft.AspNetCore.Hosting;
|
|
|
+using DocumentFormat.OpenXml.Office2010.Excel;
|
|
|
|
|
|
namespace TEAMModelOS.Controllers
|
|
|
{
|
|
@@ -747,7 +748,7 @@ namespace TEAMModelOS.Controllers
|
|
|
var code = await _notificationService.SendNotification(clientID, clientSecret, location, url, notification);
|
|
|
|
|
|
_coreAPIHttpService.PushNotify(ids, $"{bizcode}_school", Constant.NotifyType_IES5_Management,
|
|
|
- new Dictionary<string, object> { { "tmdname", tname }, { "schooName", schname } }, _option.Location, _configuration, _dingDing, _environment.ContentRootPath);
|
|
|
+ new Dictionary<string, object> { { "tmdname", tname }, { "schooName", schname }, { "schoolId", $"{school_code}" } , { "tmdid",tid} }, _option.Location, _configuration, _dingDing, _environment.ContentRootPath);
|
|
|
return Ok(new { exist = keys });
|
|
|
}
|
|
|
catch (Exception ex)
|
|
@@ -917,7 +918,7 @@ namespace TEAMModelOS.Controllers
|
|
|
var code = await _notificationService.SendNotification(clientID, clientSecret, location, url, notification);
|
|
|
|
|
|
_coreAPIHttpService.PushNotify(new List<IdNameCode> { new IdNameCode { id = teacher.id, name=teacher.name, code= teacher.lang} }, $"{bizcode}_school", Constant.NotifyType_IES5_Management,
|
|
|
- new Dictionary<string, object> { { "tmdname", tname }, { "schooName", schname } }, _option.Location, _configuration, _dingDing, _environment.ContentRootPath);
|
|
|
+ new Dictionary<string, object> { { "tmdname", tname }, { "schooName", schname }, { "schoolId", $"{school_code}" }, { "tmdid", tid } }, _option.Location, _configuration, _dingDing, _environment.ContentRootPath);
|
|
|
return Ok(new { });
|
|
|
}
|
|
|
catch (Exception ex)
|
|
@@ -1034,7 +1035,7 @@ namespace TEAMModelOS.Controllers
|
|
|
var code = await _notificationService.SendNotification(clientID, clientSecret, location, url, notification);
|
|
|
|
|
|
_coreAPIHttpService.PushNotify(new List<IdNameCode> { new IdNameCode { id = teacher.id, name = teacher.name, code = teacher.lang } }, $"remove_school", Constant.NotifyType_IES5_Management,
|
|
|
- new Dictionary<string, object> { { "tmdname", tname }, { "schooName", schname } }, _option.Location, _configuration, _dingDing, _environment.ContentRootPath);
|
|
|
+ new Dictionary<string, object> { { "tmdname", tname }, { "schooName", schname }, { "schoolId", $"{school_code}" }, { "tmdid", tid } }, _option.Location, _configuration, _dingDing, _environment.ContentRootPath);
|
|
|
}
|
|
|
return Ok(new { });
|
|
|
}
|