diff --git a/app/Plugins/Comment/src/Handler/Middleware/Create/Topic/EndMiddleware.php b/app/Plugins/Comment/src/Handler/Middleware/Create/Topic/EndMiddleware.php index a4abe2daf..75d498061 100644 --- a/app/Plugins/Comment/src/Handler/Middleware/Create/Topic/EndMiddleware.php +++ b/app/Plugins/Comment/src/Handler/Middleware/Create/Topic/EndMiddleware.php @@ -1,2 +1,25 @@ dispatch(new \App\Plugins\User\src\Event\Task\Daily\CreateTopicComment($data['comment']['id'])); + + return redirect()->url('/' . $data['topic_id'] . '.html/' . $data['comment']['id'] . '?page=' . get_topic_comment_page($data['comment']['id']) . '&clean_topic_comment_content_cache=create_topic_comment_' . $data['topic_id'])->with('success', '发表成功!')->go(); + } +}