master
cody 3 months ago
parent ea30b44f10
commit 1522ea9f18

@ -49,6 +49,7 @@ class UpdateBookIsbnData extends Command
$books = Book::whereNotNull('isbn')
->where('isbn', '!=', '')
->whereNull('cover_id')
->where('id', 1)
->get();
if ($books->isEmpty()) {
@ -165,7 +166,7 @@ class UpdateBookIsbnData extends Command
$filename = 'book_cover_' . $book->id . '_' . time() . '.' . $extension;
// 定义存储目录
$folder = 'uploads/book_covers/' . date('Y/m');
$folder = 'uploads/book_covers';
// 确保目录存在
$fullPath = public_path($folder);

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Loading…
Cancel
Save