|
@@ -628,6 +628,7 @@ class PostRepository
|
|
|
$post->delete();
|
|
|
|
|
|
DB::commit();
|
|
|
+ Redis::SADD('delete_post_ids', $request['id']);
|
|
|
$this->rabbitMqUtil->push('add_message_one', [
|
|
|
'uid' => $uid,
|
|
|
'message_rule_id' => 0,
|
|
@@ -675,6 +676,7 @@ class PostRepository
|
|
|
$post->restore();
|
|
|
|
|
|
DB::commit();
|
|
|
+ Redis::SREM('delete_post_ids', $request['id']);
|
|
|
return Response::create();
|
|
|
|
|
|
} catch (QueryException $exception) {
|