Browse Source

实名

master
huangjiajun 1 day ago
parent
commit
f83fd252c5
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      app/svc/user_real_name/svc_list.go

+ 4
- 0
app/svc/user_real_name/svc_list.go View File

@@ -6,6 +6,7 @@ import (
"applet/app/md"
"applet/app/utils"
"code.fnuoos.com/EggPlanet/egg_models.git/src/implement"
"code.fnuoos.com/EggPlanet/egg_models.git/src/model"
"github.com/gin-gonic/gin"
)

@@ -78,6 +79,9 @@ func Save(c *gin.Context) {
}
data.State = utils.StrToInt(req.State)
db.Db.Where("id=?", data.Id).Cols("state").Update(data)
if data.State == 1 {
db.Db.Where("id=?", data.Uid).Cols("is_real_name").Update(&model.User{IsRealName: 1})
}
e.OutSuc(c, "success", nil)
return
}

Loading…
Cancel
Save