This commit is contained in:
苏尹岚
2020-11-03 14:23:05 +08:00
parent dc1829de5a
commit 686416521a
2 changed files with 26 additions and 3 deletions

View File

@@ -273,6 +273,7 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string
if user != nil && user.GetID() != "" {
userProvider.UpdateLastLogin(user.GetID(), authType, ctx.GetRealRemoteIP())
}
globals.SugarLogger.Debugf("tetetetet", utils.Format4Output(user, false))
//如果是小程序
if authType == "weixinmini" || authType == "weixinapp" {
appID := strings.Split(authSecret, ",")[0]