fix: active

master
howell 3 years ago
parent 5aaac30caf
commit 772f2811e1

@ -51,6 +51,7 @@ func (o Proxy) VipActive(c *gin.Context) {
id, _ := common.GetAppUserId(c)
if id == 0 {
back.Fail(c, "用户不存在")
return
}
key := fmt.Sprintf("user:vip:%d", id)
dbc.Rds.SetNX(key, 1, 15)
@ -61,6 +62,7 @@ func (o Proxy) VipActive(c *gin.Context) {
if res.Val() {
// 存在
back.Fail(c, "用户已激活")
return
}
var u1 user.Information

Loading…
Cancel
Save