|
|
@ -479,6 +479,10 @@ namespace _24Hour.Controllers |
|
|
|
UserModel.Id = Guid.NewGuid().ToString(); |
|
|
|
UserModel.Id = Guid.NewGuid().ToString(); |
|
|
|
UserModel.usertype = 1; |
|
|
|
UserModel.usertype = 1; |
|
|
|
UserModel.audit = 2; |
|
|
|
UserModel.audit = 2; |
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(UserModel.photo)) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
UserModel.photo = "/CaseFile/resource/headicon.png"; |
|
|
|
|
|
|
|
} |
|
|
|
//ĬÈÏÃÜÂë |
|
|
|
//ĬÈÏÃÜÂë |
|
|
|
UserModel.Password = Elight.Utility.Encrypt.Md5.Encrypt32($"{UserModel.Password}").ToLower(); |
|
|
|
UserModel.Password = Elight.Utility.Encrypt.Md5.Encrypt32($"{UserModel.Password}").ToLower(); |
|
|
|
var num = await _db.Insertable(UserModel).ExecuteCommandAsync(); |
|
|
|
var num = await _db.Insertable(UserModel).ExecuteCommandAsync(); |
|
|
@ -504,6 +508,10 @@ namespace _24Hour.Controllers |
|
|
|
//ĬÈÏÃÜÂë |
|
|
|
//ĬÈÏÃÜÂë |
|
|
|
UserModel.Password = Elight.Utility.Encrypt.Md5.Encrypt32($"{UserModel.Password}").ToLower(); |
|
|
|
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(); |
|
|
|
var num = await _db.Insertable(UserModel).ExecuteCommandAsync(); |
|
|
|
_db.CommitTran(); |
|
|
|
_db.CommitTran(); |
|
|
|
if (num > 0) |
|
|
|
if (num > 0) |
|
|
|