小程序登录判断,如果没有openid就做标记

This commit is contained in:
苏尹岚
2020-04-22 12:04:57 +08:00
parent 8c96c62a7c
commit e75001ab1a

View File

@@ -278,7 +278,7 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string
if authType == "weixinmini" {
appID := strings.Split(authSecret, ",")[0]
if appID == "wx08a5c2a8581414ff" || appID == "wx2d6949f724b2541d" { //菜市或者果园
binds, err := dao.GetUserBindAuthInfo(dao.GetDB(), user.GetID(), 0, nil, "", "", "weixinsns")
binds, err := dao.GetUserBindAuthInfo(dao.GetDB(), user.GetID(), 0, nil, "", "", "wx2bb99eb5d2c9b82c")
if err != nil {
return authInfo, err
}