xiaogang 3 年之前
父節點
當前提交
c82b6fd844
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      app/Admin/Controllers/NoticeController.php
  2. 2 2
      app/Services/JPushService.php

+ 1 - 1
app/Admin/Controllers/NoticeController.php

xqd
@@ -96,7 +96,7 @@ class NoticeController extends AdminController
                     'content' => $res->content,
                     //设备标识,跟设备相关
                     'reg_id' => $registrationIds,
-//                    'image' => "https://zhengda.oss-accelerate.aliyuncs.com/chengluApp/image_cropper_1628325545267_compressed4883651550324666535.jpg",
+                    'image' => "https://zhengda.oss-accelerate.aliyuncs.com/chengluApp/image_cropper_1628325545267_compressed4883651550324666535.jpg",
                     //扩展字段
                     'extras' => [
                         'type' => 'notice',

+ 2 - 2
app/Services/JPushService.php

xqd
@@ -88,12 +88,12 @@ class JPushService
                 'title' => $title,
                 'builder_id' => $builder_id,
                 'extras' => $extras,
-//                'large_icon' => $params['image'] ?? ''
+                'large_icon' => $params['image']
             ])->iosNotification($content, [
                 'sound' => 'sound',
                 'badge' => '+1',
                 'extras' => $extras,
-//                'large_icon' => $params['image'] ?? ''
+                'large_icon' => $params['image']
             ])->options([
                 'apns_production' => config('jpush.apns_production', true),
                 //表示离线消息保留时长(秒)