- replace literal 'admin' with const

This commit is contained in:
gazebo
2019-03-12 15:53:13 +08:00
parent c46f1597f1
commit 3113e9d603
8 changed files with 14 additions and 9 deletions

View File

@@ -126,7 +126,7 @@ func (c *OrderManager) OnOrderComments(orderCommentList []*model.OrderComment) (
}
if err == nil {
if isNewComment {
// dao.WrapAddIDCULEntity(orderComment, "admin")
// dao.WrapAddIDCULEntity(orderComment, model.AdminName)
err = dao.CreateEntity(db, comment2)
} else if comment2 != nil {
_, err = dao.UpdateEntity(db, comment2)