|
|
@@ -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 |
|
|
|
} |