Prechádzať zdrojové kódy

sent 支持多个channel

visuddhinanda 2 rokov pred
rodič
commit
9730815f81
1 zmenil súbory, kde vykonal 2 pridanie a 7 odobranie
  1. 2 7
      app/Http/Api/TemplateRender.php

+ 2 - 7
app/Http/Api/TemplateRender.php

@@ -247,17 +247,12 @@ class TemplateRender{
         $sid = $this->get_param($this->param,"sid",1);
         $sid = $this->get_param($this->param,"sid",1);
         $channel = $this->get_param($this->param,"channel",2);
         $channel = $this->get_param($this->param,"channel",2);
         if(!empty($channel)){
         if(!empty($channel)){
-            $mChannel = $channel;
+            $channels = explode(',',$channel);
         }else{
         }else{
-            $mChannel = $this->channel_id[0];
+            $channels = $this->channel_id;
         }
         }
         $sentInfo = explode('@',trim($sid));
         $sentInfo = explode('@',trim($sid));
         $sentId = $sentInfo[0];
         $sentId = $sentInfo[0];
-        if(empty($mChannel)){
-            $channels = [];
-        }else{
-            $channels = [$mChannel];
-        }
         if(isset($sentInfo[1])){
         if(isset($sentInfo[1])){
             $channels = [$sentInfo[1]];
             $channels = [$sentInfo[1]];
         }
         }