phpE69,E71,A87,A88,vueA86
このコミットが含まれているのは:
コミット
f457481677
|
@ -66,9 +66,9 @@ class Prayer {
|
||||||
return view('pages.site.video.prayer', ['res' => $res, 'menu' => $this->menu, 'user' => $this->user]);
|
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();
|
$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_URL, $url);
|
||||||
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept: application/json'));
|
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept: application/json'));
|
||||||
|
@ -84,6 +84,8 @@ class Prayer {
|
||||||
foreach ($get->items as $g) {
|
foreach ($get->items as $g) {
|
||||||
$g->comment = new \stdClass();
|
$g->comment = new \stdClass();
|
||||||
$g->comment->id = $g->id;
|
$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->name = $g->snippet->topLevelComment->snippet->authorDisplayName;
|
||||||
$g->comment->channel = $g->snippet->topLevelComment->snippet->authorChannelUrl;
|
$g->comment->channel = $g->snippet->topLevelComment->snippet->authorChannelUrl;
|
||||||
$g->comment->icon = $g->snippet->topLevelComment->snippet->authorProfileImageUrl;
|
$g->comment->icon = $g->snippet->topLevelComment->snippet->authorProfileImageUrl;
|
||||||
|
|
|
@ -83,6 +83,7 @@
|
||||||
this.newComment.mail = '';
|
this.newComment.mail = '';
|
||||||
this.newComment.text = '';
|
this.newComment.text = '';
|
||||||
},
|
},
|
||||||
|
page () {},
|
||||||
send () {
|
send () {
|
||||||
if (this.isvideo !== 'n') {
|
if (this.isvideo !== 'n') {
|
||||||
this.err = '';
|
this.err = '';
|
||||||
|
|
新しいイシューから参照