kphcdr 1 год назад
Родитель
Сommit
b54194ed6e
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      app/Modules/Admin/Services/GoodsService.php

+ 1 - 2
app/Modules/Admin/Services/GoodsService.php

@@ -7,7 +7,6 @@ use App\Models\Goods\Goods;
 use App\Models\Goods\GoodsCategoryMap;
 use App\Models\Goods\GoodsCustom;
 use App\Models\Goods\GoodsSearch;
-use App\Models\Goods\GoodsSku;
 use App\Models\Goods\GoodsSpecMap;
 use Illuminate\Database\Eloquent\Builder;
 use Illuminate\Support\Arr;
@@ -125,7 +124,7 @@ class GoodsService extends BaseService
         ], [
             "goods_id" => $goods->id,
             "content" => $goods->name . $goods->en_name . implode("", array_map(function ($item) {
-                    return implode("", Arr::pluck($item, "attr.value"));
+                    return implode("", Arr::pluck(Arr::get($item, "attr"), "value"));
                 }, $goods->custom)) . strip_tags($goods->desc_html) . $goods->specMap->map(function (GoodsSpecMap $m) {
                     return $m->value;
                 })->implode(""),