فهرست منبع

render_article $text 改为 $title

visuddhinanda 3 سال پیش
والد
کامیت
173ef261c0
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      app/Http/Api/TemplateRender.php

+ 3 - 3
app/Http/Api/TemplateRender.php

@@ -127,7 +127,7 @@ class TemplateRender{
 
 
         $type = $this->get_param($this->param,"type",1);
         $type = $this->get_param($this->param,"type",1);
         $id = $this->get_param($this->param,"id",2);
         $id = $this->get_param($this->param,"id",2);
-        $text = $this->get_param($this->param,"text",3);
+        $title = $this->get_param($this->param,"title",3);
         $channel = $this->get_param($this->param,"channel",4);
         $channel = $this->get_param($this->param,"channel",4);
         $props = [
         $props = [
                     "type" => $type,
                     "type" => $type,
@@ -137,8 +137,8 @@ class TemplateRender{
         if(empty($channel)){
         if(empty($channel)){
             $props['channel'] = $this->channel_id;
             $props['channel'] = $this->channel_id;
         }
         }
-        if(!empty($text)){
-            $props['text'] = $text;
+        if(!empty($title)){
+            $props['title'] = $title;
         }
         }
         return [
         return [
             'props'=>base64_encode(\json_encode($props)),
             'props'=>base64_encode(\json_encode($props)),