瀏覽代碼

project seo

Andrew 2 週之前
父節點
當前提交
a722366304
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. 4
    0
      app/Http/Controllers/Api/ProjectController.php

+ 4
- 0
app/Http/Controllers/Api/ProjectController.php 查看文件

@@ -70,6 +70,8 @@ class ProjectController extends Controller
70 70
                 'thumbnail' => $project->thumbnail_url,
71 71
                 'imgUrl' => $project->first_list_img_url,
72 72
                 'mobileImgUrl' => $project->first_mobile_img_url,
73
+                'seo_description' => $project->getTranslation('seo_description', $locale),
74
+                'seo_keywords' => $project->getTranslation('seo_keywords', $locale),
73 75
             ];
74 76
         }
75 77
 
@@ -126,6 +128,8 @@ class ProjectController extends Controller
126 128
             ],
127 129
             'spaceInfo' => $projectSpaceInfo,
128 130
             'historyList' => $projectHistories,
131
+            'seo_description' => $project->getTranslation('seo_description', $locale),
132
+            'seo_keywords' => $project->getTranslation('seo_keywords', $locale),
129 133
         ];
130 134
 
131 135
         return Response::ok($result);