Commit c20f61f8 authored by 黄奎's avatar 黄奎

试听课推送调整

parent a58154d4
...@@ -316,12 +316,11 @@ namespace Edu.Module.Duty ...@@ -316,12 +316,11 @@ namespace Edu.Module.Duty
queryNotifyManager.ForEach(x => queryNotifyManager.ForEach(x =>
{ {
var path = $"pages/classRollCall/TrialClass?Id={model.Id}";//这个地址是欠费的通知地址,后续有H5需要改 var path = $"/h5page/TrialClass?Id={model.Id}";//这个地址是欠费的通知地址,后续有H5需要改
path = HttpUtility.UrlEncode(path); path = HttpUtility.UrlEncode(path);
string markdownContent = $@"`试听课通知` 学员试听课通知\n>**概要信息** \n>学员名称:{guestModel.StuName}({guestModel.StuRealMobile})\n> string newUrl = $"{Config.ErpUrl}/login?loginId={x.Id}&target={path}";
预约时间:<font color='warning'>{model.ReservationDate.ToString("yyyy-MM-dd")}\n> Common.Plugin.LogHelper.WriteInfo("试听推送::" + newUrl);
试听需求:<font color='warning'>{model.Demand}\n> string markdownContent = $"<font color='info'>学员试听课通知</font>\n>**概要信息** \n>学员名称:<font color='warning'>{guestModel.StuName}({guestModel.StuRealMobile})</font>\n>预约时间:<font color='warning'>{Common.ConvertHelper.FormatDate(model.ReservationDate)}</font>\n>试听需求:<font color='warning'>{Common.Plugin.StringHelper.FilterHtml(model.Demand)}次课)</font>\n>请 点 击:[查看详情]({newUrl})";
请点击:[查看详情]({Config.ErpUrl}/autologin?loginId={x.Id}&target={path})";
Common.Message.PushMessageModel modelWork = new Common.Message.PushMessageModel() Common.Message.PushMessageModel modelWork = new Common.Message.PushMessageModel()
{ {
CategoryId = PushMessageCategoryEnum.ReserveClass, CategoryId = PushMessageCategoryEnum.ReserveClass,
......
...@@ -83,7 +83,6 @@ namespace Edu.WebApi.Controllers.Course ...@@ -83,7 +83,6 @@ namespace Edu.WebApi.Controllers.Course
jobj.Add("TotalTimes", item.TotalTimes); jobj.Add("TotalTimes", item.TotalTimes);
list.Add(jobj); list.Add(jobj);
} }
} }
return ApiResult.Success(data: list); return ApiResult.Success(data: list);
} }
......
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