Update Helpers.php

This commit is contained in:
Easy 2022-04-19 19:53:56 +08:00 committed by GitHub
parent 411f768156
commit 05d051dc8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,7 +115,8 @@ function ios_send($is_clip, $device_token, $text, $desp = '', $dev = true)
$topic = intval($is_clip) == 1 ? config('services.go_push.ios_clip_topic') : config('services.go_push.ios_topic'); $topic = intval($is_clip) == 1 ? config('services.go_push.ios_clip_topic') : config('services.go_push.ios_topic');
$notification->topic = $topic; $notification->topic = $topic;
$notification->sound = ['volume'=>2.0]; $notification->sound = ['volume'=>2.0];
$notification->mutable_content = 1; $notification->mutable_content = true;
$notification->alert= ['title'=>$text,'subtitle'=>'from PushDeer','body'=>$desp];
$json = ['notifications'=>[$notification]]; $json = ['notifications'=>[$notification]];
$client = new GuzzleHttp\Client(); $client = new GuzzleHttp\Client();