From bafd5397bef0481a449bef438b041561c495b0ee Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Tue, 29 Oct 2024 16:50:07 +0800 Subject: [PATCH] userId1 --- api/controller/Question.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/controller/Question.go b/api/controller/Question.go index 2e57c32..eca3854 100644 --- a/api/controller/Question.go +++ b/api/controller/Question.go @@ -77,7 +77,7 @@ func (b *Question) GetQuestionHot(c *gin.Context) { // GetQuestion 获取问题详情 func (r *Question) GetQuestion(c *gin.Context) { - userId := c.Param("user_id") + userId := c.Query("user_id") id := c.Param("question_id") if id == "" {