diff --git a/24Hour/Controllers/LoginController.cs b/24Hour/Controllers/LoginController.cs index 7a9b05d..400aba0 100644 --- a/24Hour/Controllers/LoginController.cs +++ b/24Hour/Controllers/LoginController.cs @@ -479,6 +479,10 @@ namespace _24Hour.Controllers UserModel.Id = Guid.NewGuid().ToString(); UserModel.usertype = 1; UserModel.audit = 2; + if (string.IsNullOrEmpty(UserModel.photo)) + { + UserModel.photo = "/CaseFile/resource/headicon.png"; + } //Δ¬ΘΟΓάΒλ UserModel.Password = Elight.Utility.Encrypt.Md5.Encrypt32($"{UserModel.Password}").ToLower(); var num = await _db.Insertable(UserModel).ExecuteCommandAsync(); @@ -504,6 +508,10 @@ namespace _24Hour.Controllers //Δ¬ΘΟΓάΒλ UserModel.Password = Elight.Utility.Encrypt.Md5.Encrypt32($"{UserModel.Password}").ToLower(); + if (string.IsNullOrEmpty(UserModel.photo)) + { + UserModel.photo = "/CaseFile/resource/headicon.png"; + } var num = await _db.Insertable(UserModel).ExecuteCommandAsync(); _db.CommitTran(); if (num > 0)