This commit is contained in:
王炜翔 2024-09-08 19:07:33 +08:00
parent 4273767359
commit 2f984582da
2 changed files with 8 additions and 7 deletions

View File

@ -33,7 +33,7 @@ namespace asg_form.Controllers
public string lastOperateTime { get; set; }
public string approvalPerson { get; set; } = "未审核";
public string approvalPerson { get; set; }
}
public class TaskCreate
{
@ -80,7 +80,8 @@ namespace asg_form.Controllers
money = taskinfo.Money,
status = "0",
createTime = dateString.ToString(),
lastOperateTime = dateString.ToString()
lastOperateTime = dateString.ToString(),
approvalPerson = "未审核"
};
sub.T_Task.Add(task);
await sub.SaveChangesAsync();
@ -163,7 +164,7 @@ namespace asg_form.Controllers
{
approvalPerson = user.chinaname,
status = task.status,
taskid = msg.taskid,
taskId = msg.taskid,
code = 200,
message = "成功修改"
};

View File

@ -37,7 +37,7 @@ namespace asg_form.Controllers
Com_Cocial_media = req.Com_Cocial_media,
Com_qq = req.Com_qq,
UserId=id,
Status = 0,
Status = "0",
introduction = req.introduction,
idv_id=req.idv_id,
createTime = dateString.ToString(),
@ -99,7 +99,7 @@ namespace asg_form.Controllers
TestDbContext testDb = new TestDbContext();
var comform = await testDb.com_Forms.FirstAsync(a=>a.Id == comform_id);
comform.Status = 1;
comform.Status = "1";
await testDb.SaveChangesAsync();
var ouser = await userManager.FindByIdAsync(comform.UserId.ToString());
ouser.officium = "Commentator";
@ -182,7 +182,7 @@ namespace asg_form.Controllers
TestDbContext testDb = new TestDbContext();
var comform = await testDb.com_Forms.FirstAsync(a => a.Id == comform_id);
comform.Status = 2;
comform.Status ="2";
var ouser =await userManager.FindByIdAsync(comform.UserId.ToString());
await testDb.SaveChangesAsync();
admin.SendEmail(ouser.Email, "ASG赛事组", $@"很抱歉,你的解说申请未通过");
@ -210,7 +210,7 @@ namespace asg_form.Controllers
public string idv_id { get; set; }
public string introduction { get; set; }
public string Com_qq { get; set; }
public int Status { get; set; }
public string Status { get; set; }
public string createTime { get; set; }
}