diff --git a/vendor/thinkcmf/cmf-api/src/user/controller/CommentsController.php b/vendor/thinkcmf/cmf-api/src/user/controller/CommentsController.php index 0fdd72aa7018d4fd07c60efe6d9315c0180b6f03..108c911e70c3253264b5d27caec09c26ae80b7d0 100644 --- a/vendor/thinkcmf/cmf-api/src/user/controller/CommentsController.php +++ b/vendor/thinkcmf/cmf-api/src/user/controller/CommentsController.php @@ -62,7 +62,7 @@ class CommentsController extends RestBaseController $commentService = new CommentService(); $data = $commentService->userComments($param); if (!$data->isEmpty()) { - $data->load('user,toUser'); + $data->load(['user', 'to_user']); } if (empty($this->apiVersion) || $this->apiVersion == '1.0.0') { $response = [$data];