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

+ 2 - 1
app/Services/JPushService.php

xqd xqd
@@ -5,6 +5,7 @@ namespace App\Services;
 
 
 use Illuminate\Support\Facades\Log;
+use JPush\Client;
 
 class JPushService
 {
@@ -30,7 +31,7 @@ class JPushService
     public static function getInstance()
     {
         if (!self::$client) {
-            self::$client = new JPush(config('jpush.app_key'), config('jpush.master_secret'), null);
+            self::$client = new Client(config('jpush.app_key'), config('jpush.master_secret'), null);
         }
         return self::$client;
     }