This commit is contained in:
maxwell 2024-10-08 17:14:45 +08:00
parent afd7caf994
commit b304b41ab1

View File

@ -16,7 +16,7 @@ import (
func GetUserInfo(redisClient *redis.Storage) fiber.Handler { func GetUserInfo(redisClient *redis.Storage) fiber.Handler {
return func(c *fiber.Ctx) error { return func(c *fiber.Ctx) error {
// 获取POST 请求参数 // 获取POST 请求参数
nationalId := c.Params("nationalId") nationalId := c.FormValue("nationalId")
if nationalId == "" { if nationalId == "" {
return c.Status(http.StatusUnauthorized).JSON(fiber.Map{ return c.Status(http.StatusUnauthorized).JSON(fiber.Map{
"message": "获取信息失败,身份证不能为空", "message": "获取信息失败,身份证不能为空",