1
This commit is contained in:
@@ -171,12 +171,19 @@ func (c *OrderManager) OnOrderComments(orderCommentList []*model.OrderComment) (
|
||||
//}
|
||||
}
|
||||
|
||||
if err == nil {
|
||||
if isNewComment {
|
||||
err = dao.CreateEntity(db, comment2)
|
||||
} else if comment2 != nil {
|
||||
_, err = dao.UpdateEntity(db, comment2)
|
||||
}
|
||||
//if err == nil {
|
||||
// if isNewComment {
|
||||
// err = dao.CreateEntity(db, comment2)
|
||||
// } else if comment2 != nil {
|
||||
// _, err = dao.UpdateEntity(db, comment2)
|
||||
// }
|
||||
//}
|
||||
}
|
||||
if err == nil {
|
||||
if isNewComment {
|
||||
err = dao.CreateEntity(db, comment2)
|
||||
} else if comment2 != nil {
|
||||
_, err = dao.UpdateEntity(db, comment2)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user