- BindMiniProgram

This commit is contained in:
gazebo
2019-01-28 12:26:26 +08:00
parent eaee327de2
commit bc1ac33874
4 changed files with 91 additions and 57 deletions

View File

@@ -71,6 +71,14 @@ func (ctx *Context) GetUserName() string {
return userName
}
func (ctx *Context) GetLoginID() string {
if ctx.userInfo != nil {
return ctx.userInfo.ID
}
return ""
}
func (ctx *Context) GetLoginType() string {
if ctx.userInfo != nil {
return ctx.userInfo.LoginType
@@ -78,7 +86,7 @@ func (ctx *Context) GetLoginType() string {
return ""
}
func (ctx *Context) GetUserID() string {
func (ctx *Context) GetToken() string {
return ctx.token
}