lizhen_gitee 2 mesiacov pred
rodič
commit
e38e8573fc

+ 1 - 1
application/api/controller/Demo.php

@@ -71,7 +71,7 @@ class Demo extends Api
     public function test2()
     public function test2()
     {
     {
         $tenim = new \app\api\controller\Tenim;
         $tenim = new \app\api\controller\Tenim;
-        $tenim->sendMessageToUser(1, 11, '测试一下', 1);
+        $tenim->sendMessageToUser(1, 11, 'TA送给你一个礼物送给你一个礼物', 1);
     }
     }
 
 
     /**
     /**

+ 1 - 1
application/api/controller/Tenim.php

@@ -980,7 +980,7 @@ exit;
         $data["MsgTimeStamp"] = time();
         $data["MsgTimeStamp"] = time();
 
 
         if ($type == 1) { //自定义消息
         if ($type == 1) { //自定义消息
-            $body_message = '{"businessID":"custom_tips_message","receiverShow":true,"senderId":"'.$from_user.'","text":"'.$message.'","tipType":257,"version":0}';
+            $body_message = '{"businessID":"custom_tips_message","receiverShow":true,"senderId":"'.$from_user.'","text":"'.$message.'","tipType":"257","version":0}';
             $data["MsgBody"][] = [
             $data["MsgBody"][] = [
                 "MsgType" => "TIMCustomElem",
                 "MsgType" => "TIMCustomElem",
                 "MsgContent" => [
                 "MsgContent" => [