phpE69,E71,A87,A88,vueA86

このコミットが含まれているのは:
テクニカル諏訪子 2020-12-23 14:15:38 +09:00
コミット f457481677
2個のファイルの変更5行の追加2行の削除

ファイルの表示

@ -66,9 +66,9 @@ class Prayer {
return view('pages.site.video.prayer', ['res' => $res, 'menu' => $this->menu, 'user' => $this->user]);
}
function getYouTubeCome ($slug) {
public function getYouTubeCome ($slug, $page='') {
$ch = curl_init();
$url = 'https://www.googleapis.com/youtube/v3/commentThreads?part=snippet%2Creplies&moderationStatus=published&videoId='.$slug.'&key='.env('YOUTUBE_API');
$url = 'https://www.googleapis.com/youtube/v3/commentThreads?part=snippet%2Creplies&moderationStatus=published&videoId='.$slug.'&key='.env('YOUTUBE_API').'&order=date&pageToken='.$page;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept: application/json'));
@ -84,6 +84,8 @@ class Prayer {
foreach ($get->items as $g) {
$g->comment = new \stdClass();
$g->comment->id = $g->id;
$g->comment->prev = (isset($get['prevPageToken']) ? $get['prevPageToken'] : '');
$g->comment->next = (isset($get['nextPageToken']) ? $get['nextPageToken'] : '');
$g->comment->name = $g->snippet->topLevelComment->snippet->authorDisplayName;
$g->comment->channel = $g->snippet->topLevelComment->snippet->authorChannelUrl;
$g->comment->icon = $g->snippet->topLevelComment->snippet->authorProfileImageUrl;

ファイルの表示

@ -83,6 +83,7 @@
this.newComment.mail = '';
this.newComment.text = '';
},
page () {},
send () {
if (this.isvideo !== 'n') {
this.err = '';