重置cookie
()
| 108 | |
| 109 | //重置cookie |
| 110 | func (this *BaseController) ResetCookie() { |
| 111 | this.Ctx.SetCookie("uid", "") |
| 112 | this.Ctx.SetCookie("token", "") |
| 113 | } |
| 114 | |
| 115 | //设置用户登录的cookie,其实uid是时间戳的加密,而token才是真正的uid |
| 116 | //@param uid interface{} 用户UID |
no outgoing calls
no test coverage detected