xiaogang 3 năm trước cách đây
mục cha
commit
8972b142e1
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      app/Services/JPushService.php

+ 3 - 2
app/Services/JPushService.php

xqd
@@ -88,11 +88,12 @@ class JPushService
                 'title' => $title,
                 'builder_id' => $builder_id,
                 'extras' => $extras,
-//                'large_icon' => 'https://zhengda.oss-accelerate.aliyuncs.com/chengluApp/image_cropper_1628595761196_compressed122286944406054090.jpg',
+                'small_icon_uri' => $params['image'] ?? ''
             ])->iosNotification($content, [
                 'sound' => 'sound',
                 'badge' => '+1',
-                'extras' => $extras
+                'extras' => $extras,
+                'small_icon_uri' => $params['image'] ?? ''
             ])->options([
                 'apns_production' => config('jpush.apns_production', true),
                 //表示离线消息保留时长(秒)