|
@@ -109,9 +109,11 @@ class OrderService extends BaseService
|
|
|
"goods_sn" => $goods->sn,
|
|
|
"goods_count" => $goods->count,
|
|
|
"custom" => array_map(function ($custom) {
|
|
|
+ $custom = GoodsCustom::where("id", $custom['custom_id'])->first();
|
|
|
return [
|
|
|
"custom_id" => $custom['custom_id'],
|
|
|
- "title" => GoodsCustom::where("id", $custom['custom_id'])->value("title"),
|
|
|
+ "title" => $custom->title,
|
|
|
+ "en_title" => $custom->en_title,
|
|
|
"value" => $custom['value'] ?? "",
|
|
|
];
|
|
|
}, $goods->custom ?? []),
|