Răsfoiți Sursa

:bug: 增加channel id

visuddhinanda 3 ani în urmă
părinte
comite
d19386347d
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      app/Console/Commands/WebHookArticleNew.php

+ 2 - 1
app/Console/Commands/WebHookArticleNew.php

@@ -52,8 +52,9 @@ class WebHookArticleNew extends Command
 				$row = $data[$i];
 				$book = $row['book'];
                 $para = $row['para'];
+				$channel_id = $row['channel_id'];
                 $title = $row['toc'];
-				$link = env('APP_URL',"http://127.0.0.1:8000")."/app/article/index.php?view=chapter&book={$book}&par={$para}";
+				$link = env('APP_URL',"http://127.0.0.1:8000")."/app/article/index.php?view=chapter&book={$book}&par={$para}&channel={$channel_id}";
 				$message .= "1. [{$title}]({$link})\n";				
 			}
 			$this->info($message);