zjxpcyc 6 years ago
parent
commit
50008bbdf0
1 changed files with 0 additions and 1 deletions
  1. 0
    1
      service/book/book.go

+ 0
- 1
service/book/book.go View File

213
 			return nil, errors.New("借阅失败")
213
 			return nil, errors.New("借阅失败")
214
 		}
214
 		}
215
 		if book.LeftNum <= 0 {
215
 		if book.LeftNum <= 0 {
216
-			utils.LogError("该图书已无库存: " + err.Error())
217
 			return nil, errors.New("该图书已无库存")
216
 			return nil, errors.New("该图书已无库存")
218
 		}
217
 		}
219
 		var borrowRecord = model.TaBookBorrowRecord{
218
 		var borrowRecord = model.TaBookBorrowRecord{