wzq 5 年 前
コミット
134e6b8bc5
共有1 個のファイルを変更した0 個の追加23 個の削除を含む
  1. 0 23
      app/Repositories/Post/PostRepository.php

+ 0 - 23
app/Repositories/Post/PostRepository.php

@@ -290,29 +290,6 @@ class PostRepository
             $data['parent_id'] = $request['parent_id'];
             $data['reply_uid'] = $comment->uid;
             $data['reply_username'] = $comment->username;
-            $this->rabbitMqUtil->push('add_message', [
-                'uid' => $comment->uid,
-                'message_show_type' => 'post_reply_main',
-                'param' => [
-                    'uid' => $userInfo['uid'],
-                    'username' => $userInfo['username'],
-                    'post_id' => $post->id,
-                    'cover' => $post->img,
-                    'content' => subtext($request['content'], 20),
-                ]
-            ]);
-        } else {
-            $this->rabbitMqUtil->push('add_message', [
-                'uid' => $post->uid,
-                'message_show_type' => 'post_comment',
-                'param' => [
-                    'uid' => $userInfo['uid'],
-                    'username' => $userInfo['username'],
-                    'post_id' => $post->id,
-                    'cover' => $post->img,
-                    'content' => subtext($request['content'], 20),
-                ]
-            ]);
         }
         DB::beginTransaction();
         try {