kphcdr 1 년 전
부모
커밋
e6d51ff26b
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      app/Modules/Admin/Services/GoodsService.php

+ 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,