阶段性提交

This commit is contained in:
刘祥超
2020-12-15 11:52:57 +08:00
parent 674de0d0b5
commit e449935bf2
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
}