zhangchangchun 5 anni fa
parent
commit
7746c78745
1 ha cambiato i file con 2 aggiunte e 5 eliminazioni
  1. 2 5
      app/Transformers/VideoGroupInfoTransformer.php

+ 2 - 5
app/Transformers/VideoGroupInfoTransformer.php

@@ -18,7 +18,6 @@ class VideoGroupInfoTransformer extends  TransformerAbstract{
     public function transform(VideoGroupInfo $videoGroupInfo)
     {
         $videoInfo = $this->getVideo($videoGroupInfo['post_id']);
-        dd($videoInfo);
         return [
             'id' => $videoGroupInfo['id'],
             'video_group_id' => $videoGroupInfo['name'],
@@ -34,10 +33,8 @@ class VideoGroupInfoTransformer extends  TransformerAbstract{
     }
     public function getVideo($id) {
         try {
-            // $sign = generateSign(['id'=>$id], config('customer.app_secret'));
-             $url = config("customer.manage_service_url").'/community/post/detail';
-           // $url = 'https://manage.dev.caihongxingqiu.com/community/post/detail';
-            //$url = 'http://localhost:8080/userInfo';
+            $url = config("customer.manage_service_url").'/community/post/detail';
+            dd($url);
             $array = [
                 'json' => ['id'=>$id], 'query' => [], 'http_errors' => false,'headers'=>['Authorization'=>"Bearer ".JWTAuth::getToken()]
             ];