This commit is contained in:
gazebo
2019-10-24 15:37:44 +08:00
parent 81188aeb88
commit 6e89cfbe21

View File

@@ -681,7 +681,7 @@ func SaveUserCart(ctx *jxcontext.Context, userID string, storeID int, cartItems
return err return err
} }
if len(cartItems) > 0 { if len(cartItems) > 0 {
err = dao.CreateMultiEntities(dao.GetDB(), cartItems) err = dao.CreateMultiEntities(db, cartItems)
} }
if err == nil { if err == nil {
dao.Commit(db) dao.Commit(db)