Selaa lähdekoodia

修改二级库bug390引起的后续bug

mainqaq 2 vuotta sitten
vanhempi
commit
673fa6aea8
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      service/secondary_service.go

+ 1 - 0
service/secondary_service.go Näytä tiedosto

@@ -113,6 +113,7 @@ func AddStroehouse(storehouse models.Storehouse) error {
113 113
 	tx := XTWriteDB().Begin()
114 114
 	defer func() {
115 115
 		if err != nil {
116
+			utils.ErrorLog("新增仓库_事务失败,原因为", err)
116 117
 			tx.Rollback()
117 118
 		} else {
118 119
 			tx.Commit()