lizhen_gitee il y a 1 an
Parent
commit
f11be698d3

+ 4 - 4
application/common/library/Easemob.php

@@ -27,9 +27,9 @@ class Easemob {
         $pushMessage =
         [
             'title'=> $title,
-            'subTitle'=> '',
+//            'subTitle'=> '',
             'content'=> $msg,
-            'ext'=> [],
+            /*'ext'=> [],
             'config'=> [
                 'clickAction'=> [
                     'url'=>'',
@@ -51,10 +51,10 @@ class Easemob {
             'oppo'=> [],
             'vivo'=> [],
             'xiaomi'=> [],
-            'honor'=>[]
+            'honor'=>[]*/
         ];
 
-        $rs = $message->push_sync($uid,json_encode($pushMessage));
+        $rs = $message->push_sync($uid,$pushMessage);
         //dump($rs);
     }
 

+ 1 - 1
vendor/maniac/easemob-php/src/Push.php

@@ -39,7 +39,7 @@ final class Push
         $header['Content-Type'] =  'application/json';
 
         $resp = Http::post($uri, $body, $header);
-        dump($resp);
+
         if (!$resp->ok()) {
             return \Easemob\error($resp);
         }