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