From b304b41ab189be223ddd357a9f5a1271e39a749e Mon Sep 17 00:00:00 2001 From: maxwell Date: Tue, 8 Oct 2024 17:14:45 +0800 Subject: [PATCH] update --- middleware/student.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/student.go b/middleware/student.go index 0e7f8f6..63cd90b 100644 --- a/middleware/student.go +++ b/middleware/student.go @@ -16,7 +16,7 @@ import ( func GetUserInfo(redisClient *redis.Storage) fiber.Handler { return func(c *fiber.Ctx) error { // 获取POST 请求参数 - nationalId := c.Params("nationalId") + nationalId := c.FormValue("nationalId") if nationalId == "" { return c.Status(http.StatusUnauthorized).JSON(fiber.Map{ "message": "获取信息失败,身份证不能为空",