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