Browse Source

使用请求中的channel参数

visuddhinanda 3 years ago
parent
commit
fdba355485
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Resources/SentResource.php

+ 1 - 1
app/Http/Resources/SentResource.php

@@ -46,7 +46,7 @@ class SentResource extends JsonResource
         }
         if($request->get('html',true)){
             $data['html'] = MdRender::render($this->content,
-                                             [$this->channel_uid],
+                                             $channels,
                                              null,
                                              $mode,
                                              $channel['type'],