wzq 5 lat temu
rodzic
commit
8212c53222
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      app/Transformers/Post/SuggestTransformer.php

+ 1 - 0
app/Transformers/Post/SuggestTransformer.php

@@ -88,6 +88,7 @@ class SuggestTransformer extends TransformerAbstract
             'is_collect' => PostCollect::where('post_id', $post['id'])->where('uid', $this->uid)->exists()?1:0,
             'is_collect' => PostCollect::where('post_id', $post['id'])->where('uid', $this->uid)->exists()?1:0,
             'comment' => $comment,
             'comment' => $comment,
             'is_follow' => $isFollow,
             'is_follow' => $isFollow,
+            'desc_url' => $post['type'] == 'html'?config('customer.app_service_url').'/post/fragment/detail/'.$post['id']:'',
         ];
         ];
     }
     }
 }
 }