Compare commits

..

No commits in common. "296039414266db3e29d501162f525d14ed8dcfc0" and "9d3d91e6033439424561535396d5327839755e19" have entirely different histories.

1 changed files with 5 additions and 9 deletions

View File

@ -424,18 +424,14 @@ namespace Learn.Archives.API.Controllers
var subjectArr = row..Split("") var subjectArr = row..Split("")
.Select(s => s.ToEnum<SubjectEnum>()) .Select(s => s.ToEnum<SubjectEnum>())
.ToArray(); .ToArray();
var upUser = new User userCenterUpdate.Add(new User
{ {
Id = uid, Id = uid,
Phone = row.Phone, Phone = row.Phone,
}; GLSubject = (int?)subjectArr[0],
if (subjectArr.Length > 0) GSubject1 = (int?)subjectArr[1],
upUser.GLSubject = (int?)subjectArr[0]; GSubject2 = (int?)subjectArr[2],
if (subjectArr.Length > 1) });
upUser.GSubject1 = (int?)subjectArr[1];
if (subjectArr.Length > 2)
upUser.GSubject2 = (int?)subjectArr[2];
userCenterUpdate.Add(upUser);
} }
} }