会员统计

This commit is contained in:
苏尹岚
2020-09-25 11:37:55 +08:00
parent f0a6b1b957
commit 81e84b7eec
2 changed files with 3 additions and 1 deletions

View File

@@ -243,7 +243,6 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string
realAuthID = user.GetID() realAuthID = user.GetID()
} }
if authBindEx, err = handler.VerifySecret(realAuthID, authSecret); err == nil { if authBindEx, err = handler.VerifySecret(realAuthID, authSecret); err == nil {
globals.SugarLogger.Debugf("testttttttttttttttttttttttttttttttttttt", utils.Format4Output(authBindEx, false))
if authBindEx == nil { // mobile, email会返回nil表示不会新建AuthBind实体 if authBindEx == nil { // mobile, email会返回nil表示不会新建AuthBind实体
user = userProvider.GetUser(authID, authIDType) user = userProvider.GetUser(authID, authIDType)
authBindEx = &AuthBindEx{ authBindEx = &AuthBindEx{

View File

@@ -48,6 +48,9 @@ func GetJxShopUsers(ctx *jxcontext.Context, keyword string, offset, pageSize int
sql += "LIMIT ? OFFSET ?" sql += "LIMIT ? OFFSET ?"
pageSize = jxutils.FormalizePageSize(pageSize) pageSize = jxutils.FormalizePageSize(pageSize)
sqlParams = append(sqlParams, pageSize, offset) sqlParams = append(sqlParams, pageSize, offset)
// for _, v := range requestList {
// }
dao.Begin(db) dao.Begin(db)
defer dao.Commit(db) defer dao.Commit(db)
if err = dao.GetRows(db, &requestList, sql, sqlParams...); err == nil { if err = dao.GetRows(db, &requestList, sql, sqlParams...); err == nil {