kphcdr 1 rok pred
rodič
commit
e6d51ff26b

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

@@ -128,11 +128,13 @@ class GoodsService extends BaseService
 
         $return = [
             "id" => $model->id,
+            "name" => $model->name,
             "image_list" => $model->image_list,
             "category" => $model->map->map(function (GoodsCategoryMap $map) {
                 return [
                     "id" => $map->category->id,
                     "is_public" => $map->is_public,
+                    "name" => $map->category->name,
                 ];
             }),
             "spec" => $model->spec,