|
@@ -34,7 +34,7 @@ class GoodsThumbCommand extends Command
|
|
*/
|
|
*/
|
|
protected function execute(InputInterface $input, OutputInterface $output): int
|
|
protected function execute(InputInterface $input, OutputInterface $output): int
|
|
{
|
|
{
|
|
- $goods = Goods::select('goods_id','goods_cover')->limit(10)->get()->toArray();
|
|
|
|
|
|
+ $goods = Goods::select('goods_id','goods_cover')->get()->toArray();
|
|
|
|
|
|
foreach ($goods as $good){
|
|
foreach ($goods as $good){
|
|
if (!file_exists(public_path($good['goods_cover']))){
|
|
if (!file_exists(public_path($good['goods_cover']))){
|