|
@@ -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 {
|