Browse Source

修改注册逻辑,在有相同手机号时做更新处理

develop
胡超1 2 years ago
parent
commit
bd3880930d
  1. 11
      24Hour/Controllers/LoginController.cs

11
24Hour/Controllers/LoginController.cs

@ -464,7 +464,18 @@ namespace _24Hour.Controllers
{
_db.BeginTran();
data.audit = 2;
data.describe = "";
data.photo = "/CaseFile/resource/headicon.png";
data.name = UserModel.name;
data.sex = UserModel.sex;
data.phone = UserModel.phone;
data.cardId = UserModel.cardId;
data.identitycardId = UserModel.identitycardId;
data.departmentName = UserModel.departmentName;
data.Password = Elight.Utility.Encrypt.Md5.Encrypt32($"{UserModel.Password}").ToLower();
data.cardIdphoto = UserModel.cardIdphoto;
data.identityphoto = UserModel.identityphoto;
data.departmentPhoto = UserModel.departmentPhoto;
var num = await _db.Updateable(data).IgnoreColumns(true).ExecuteCommandAsync();
_db.CommitTran();
if (num > 0)

Loading…
Cancel
Save