阶段性提交

This commit is contained in:
GoEdgeLab
2020-12-15 11:52:57 +08:00
parent c05d060aa1
commit 9b6faf18c0
7 changed files with 155 additions and 30 deletions

View File

@@ -198,7 +198,9 @@ func (this *AdminDAO) UpdateAdminLogin(adminId int64, username string, password
op := NewAdminOperator()
op.Id = adminId
op.Username = username
op.Password = stringutil.Md5(password)
if len(password) > 0 {
op.Password = stringutil.Md5(password)
}
err := this.Save(op)
return err
}