소스 검색

社媒对接

moshaorui 2 일 전
부모
커밋
a3d24f2bdb
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/Services/Smm/YoutubeService.php

+ 1 - 0
app/Services/Smm/YoutubeService.php

@@ -128,6 +128,7 @@ class YoutubeService implements SmmPlatformInterface
             // 设置视频状态
             $status = new Google_Service_YouTube_VideoStatus();
             $status->setPrivacyStatus('public'); // public, private, unlisted
+            $status->setMadeForKids(true);// 是否为儿童视频
             // 创建视频对象
             $video = new Google_Service_YouTube_Video();
             $video->setSnippet($snippet);