修改问题

This commit is contained in:
Rosy-zhudan
2019-08-30 16:59:46 +08:00
parent 02bb89d67d
commit b9ec8067ac
5 changed files with 11 additions and 4 deletions

View File

@@ -1064,7 +1064,7 @@ func SortCategorySkus(ctx *jxcontext.Context, catID int, skuIDList []int) (err e
dao.Begin(db)
defer func() {
if r := recover(); r != nil || err != nil {
if r := recover(); r != nil {
dao.Rollback(db)
if r != nil {
panic(r)