修改了新病例验证2

This commit is contained in:
wucongxing8150 2025-07-08 17:33:45 +08:00
parent fd3b03d7b5
commit 1f52e899da

View File

@ -245,7 +245,7 @@ func (b *Public) LoginProgram(c *gin.Context) {
req := publicRequest.LoginProgram
if err := c.ShouldBind(&req); err != nil {
c.JSON(http.StatusOK, gin.H{
"message": "登录失败1",
"message": "登录失败",
"code": -2,
"data": gin.H{
"source": 2,
@ -258,7 +258,7 @@ func (b *Public) LoginProgram(c *gin.Context) {
// 参数验证
if err := global.Validate.Struct(req); err != nil {
c.JSON(http.StatusOK, gin.H{
"message": "登录失败2",
"message": "登录失败",
"code": -2,
"data": gin.H{
"source": 2,
@ -272,7 +272,7 @@ func (b *Public) LoginProgram(c *gin.Context) {
t, err := utils.ParseJwt(req.Token)
if err != nil {
c.JSON(http.StatusOK, gin.H{
"message": "登录失败3",
"message": "登录失败",
"code": -2,
"data": gin.H{
"source": 2,
@ -342,7 +342,7 @@ func (b *Public) LoginProgram(c *gin.Context) {
jwt, err := token.NewJWT()
if err != nil || jwt == "" {
c.JSON(http.StatusOK, gin.H{
"message": "登陆失败6",
"message": "登陆失败",
"code": -1,
"data": gin.H{
"source": 2,