|
|
@ -512,7 +512,7 @@ namespace _24Hour.Controllers |
|
|
|
_db.BeginTran(); |
|
|
|
_db.BeginTran(); |
|
|
|
data.audit = 2; |
|
|
|
data.audit = 2; |
|
|
|
data.describe = ""; |
|
|
|
data.describe = ""; |
|
|
|
data.photo = "/CaseFile/resource/headicon.png"; |
|
|
|
data.photo = "/CaseFile/resource/headicon.aks"; |
|
|
|
data.name = UserModel.name; |
|
|
|
data.name = UserModel.name; |
|
|
|
data.sex = UserModel.sex; |
|
|
|
data.sex = UserModel.sex; |
|
|
|
data.phone = UserModel.phone; |
|
|
|
data.phone = UserModel.phone; |
|
|
@ -554,7 +554,7 @@ namespace _24Hour.Controllers |
|
|
|
UserModel.audit = 2; |
|
|
|
UserModel.audit = 2; |
|
|
|
if (string.IsNullOrEmpty(UserModel.photo)) |
|
|
|
if (string.IsNullOrEmpty(UserModel.photo)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
UserModel.photo = "/CaseFile/resource/headicon.png"; |
|
|
|
UserModel.photo = "/CaseFile/resource/headicon.aks"; |
|
|
|
} |
|
|
|
} |
|
|
|
//ĬÈÏÃÜÂë |
|
|
|
//ĬÈÏÃÜÂë |
|
|
|
UserModel.Password = Elight.Utility.Encrypt.Md5.Encrypt32($"{UserModel.Password}").ToLower(); |
|
|
|
UserModel.Password = Elight.Utility.Encrypt.Md5.Encrypt32($"{UserModel.Password}").ToLower(); |
|
|
@ -598,7 +598,7 @@ namespace _24Hour.Controllers |
|
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(UserModel.photo)) |
|
|
|
if (string.IsNullOrEmpty(UserModel.photo)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
UserModel.photo = "/CaseFile/resource/headicon.png"; |
|
|
|
UserModel.photo = "/CaseFile/resource/headicon.aks"; |
|
|
|
} |
|
|
|
} |
|
|
|
var num = await _db.Insertable(UserModel).ExecuteCommandAsync(); |
|
|
|
var num = await _db.Insertable(UserModel).ExecuteCommandAsync(); |
|
|
|
_db.CommitTran(); |
|
|
|
_db.CommitTran(); |
|
|
|