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

master
ceruIean 2021-10-20 13:30:03 +08:00
parent 8364598e7d
commit 342daaf011
3 changed files with 4 additions and 5 deletions

View File

@ -52,8 +52,7 @@ namespace _2021_backend.Controllers
sub.Host = stu.Guid;
Context.Submissions.Add(sub);
Context.SaveChanges();
//await TencentSMS.Send(Context, SMSType.Signed, stu, _2021_backend.Models.User.Bot.stuID);
await TencentSMS.Send(Context, SMSType.Signed, stu, _2021_backend.Models.User.Bot.stuID);
return Ok(ApiResponse.Success("success"));
}

View File

@ -142,7 +142,7 @@ namespace _2021_backend.Utils
break;
case SMSType.Signed:
sms.Type = SMSType.Signed;
req.TemplateParamSet = new string[] { stu.Name, stu.Stuid };
req.TemplateParamSet = new string[] { stu.Name };
req.TemplateId = SMSID_signed;
break;
}

View File

@ -10,9 +10,9 @@
"ADMIN_USERNAME": "zjueva",
"ADMIN_PASSWORD": "a",
"SMS_APPID": "1400562126",
"SMS_ID_ACCEPT": "1089597",
"SMS_ID_ACCPET": "1163892",
"SMS_ID_REJECT": "1089595",
"SMS_ID_SUBMITTED": "1089587",
"SMS_ID_SUBMITTED": "1163892",
"SMS_ID_TIMESET": "1131089",
"SMS_ID_TIMESELECT": "1131090",
"TENCENT_ID": "AKIDYv5JGwKSJtCE0VjhOpyqSotgDTSaYIsF",