change message id
continuous-integration/drone/push Build is passing Details

master
ceruIean 2021-12-08 16:53:59 +08:00
parent a8717cd429
commit 3dd8cc1a92
5 changed files with 15 additions and 4 deletions

View File

@ -35,6 +35,7 @@
</div>
<button type="submit" class="btn btn-outline-primary m-2">搜索</button>
<input type="submit" value="Cleanup" class="btn btn-primary" asp-page-handler="Finalize" />
<input type="submit" value="Reset Timeselect" class="btn btn-primary" asp-page-handler="ReselectAll" />
</form>
<table class="table">
<thead>

View File

@ -101,7 +101,17 @@ namespace _2021_backend.Pages.Students
foreach(var s in Context.Students)
{
if (s.RegisterTime.CompareTo(new DateTime(2021, 11, 11)) > 0) s.Status = status.;
else if (s.Timelist.Count == 0) s.Status = status.;
else if (s.Timelist.Count == 0 && s.Status != status.) s.Status = status.;
}
Context.SaveChanges();
return Construct((int)pageId, errInfo);
}
public async Task<IActionResult> OnPostReselectAllAsync(int? pageId,string errInfo)
{
foreach (var s in Context.Students)
{
if (s.Status != status.) s.Status = status.;
}
Context.SaveChanges();
return Construct((int)pageId,errInfo);

View File

@ -137,7 +137,7 @@ namespace _2021_backend.Utils
sms.Type = SMSType.TimeSet;
var q = from e in Context.Sessions where e.Guid == index select e;
var time = await q.FirstOrDefaultAsync();
req.TemplateParamSet = new string[] { stu.Name, time.Day.ToString("dd") ,time.BeginTime.ToString("HH"), time.BeginTime.AddHours(2).ToString("HH") };
req.TemplateParamSet = new string[] { stu.Name, time.Day.ToString("dd") ,time.BeginTime.ToString("HH"),time.BeginTime.ToString("mm"), time.BeginTime.AddHours(2).ToString("HH") ,time.BeginTime.ToString("mm")};
req.TemplateId = SMSID_timeSet;
break;
case SMSType.Signed:

View File

@ -14,7 +14,7 @@
"SMS_ID_REJECT": "1089595",
"SMS_ID_SUBMITTED": "1163892",
"SMS_ID_TIMESET": "1212667",
"SMS_ID_TIMESELECT": "1210823",
"SMS_ID_TIMESELECT": "1231675",
"TENCENT_ID": "AKIDYv5JGwKSJtCE0VjhOpyqSotgDTSaYIsF",
"TENCENT_KEY": "mPzSimdGenpdCWcT5TcWBboreAQQ9bmh",
"SMSBOT_NAME": "msgbot",

View File

@ -1 +1 @@
张峻瑜 6 180 27-09:00-204 27-13:00-204 27-15:30-204 28-13:00-204 28-15:30-204 28-18:30-204
张峻瑜 1 30 27-18:00-204