fix: UDM用户获取查询为空值情况

This commit is contained in:
TsMask
2023-12-22 12:23:08 +08:00
parent 1234c56af8
commit 89356af2c7
4 changed files with 12 additions and 10 deletions

View File

@@ -89,6 +89,11 @@ func (s *UDMAuthController) Info(c *gin.Context) {
return
}
if len(data) == 0 {
c.JSON(200, result.ErrMsg("No Auth Data"))
return
}
// 查询数据库是否存在并存入
neId = ""
var userInfo model.UDMAuth