update
This commit is contained in:
parent
afd7caf994
commit
b304b41ab1
@ -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": "获取信息失败,身份证不能为空",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user