Commit a34e93a2 authored by 黄奎's avatar 黄奎

新增参数

parent 66deda2b
......@@ -56,6 +56,8 @@ namespace Edu.Common.Message
message.ReceiveId,
message.JumpUrl,
message.CreateByName,
message.MsgSign,
message.MsgTemplateCode,
Status = 0,
CreateTime = DateTime.Now,
AppId = Common.Config.ReadConfigKey("PushAppId"),
......
......@@ -58,5 +58,15 @@ namespace Edu.Common.Message
/// 创建人姓名
/// </summary>
public string CreateByName { get; set; }
/// <summary>
/// 短信模板代码
/// </summary>
public string MsgTemplateCode { get; set; }
/// <summary>
/// 短信签名
/// </summary>
public string MsgSign { get; set; }
}
}
......@@ -211,7 +211,7 @@ namespace Edu.WebApi.Controllers.User
CoverImg = "",
CreateByName = userInfo.AccountName,
JumpUrl = "",
ReceiveId = "1",
ReceiveId = userInfo.Id.ToString(),
SendTime = DateTime.Now,
SendType = 0,
Title = DateTime.Now.ToString("yyyyMMdd HH:mm:ss fff") + "推送标题" + i.ToString(),
......@@ -225,11 +225,14 @@ namespace Edu.WebApi.Controllers.User
else if (num % 4 == 2)
{
model.Platform = 2;
model.ReceiveId = userInfo.Id.ToString();
}
//短信推送
else if (num % 4 == 3)
{
model.Platform = 3;
model.MsgTemplateCode = "短信模板代码";
model.MsgSign = "签名";
model.ReceiveId = "13551126755";
}
//邮件推送
......
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