test登录

This commit is contained in:
苏尹岚
2020-09-23 15:07:45 +08:00
parent 0ad0fc7840
commit f9530f614c
2 changed files with 6 additions and 4 deletions

View File

@@ -27,6 +27,7 @@ var (
AutherObjWX *Auther
AutherObjMP *Auther
AutherObjNative *Auther
AutherObjApp *Auther
)
var (
@@ -48,6 +49,11 @@ func init() {
authType: AuthTypeWXNative,
}
auth2.RegisterAuther(AuthTypeWXNative, AutherObjNative)
AutherObjApp = &Auther{
authType: AuthTypeWxApp,
}
auth2.RegisterAuther(AuthTypeWxApp, AutherObjApp)
}
func (a *Auther) VerifySecret(id, secret string) (authBindEx *auth2.AuthBindEx, err error) {

View File

@@ -27,15 +27,11 @@ var (
var (
AutherObjMini *MiniAuther
AutherObjApp *MiniAuther
)
func init() {
AutherObjMini = new(MiniAuther)
auth2.RegisterAuther(AuthTypeMini, AutherObjMini)
AutherObjApp = new(MiniAuther)
auth2.RegisterAuther(AuthTypeWxApp, AutherObjApp)
}
func (a *MiniAuther) VerifySecret(dummy, jsCode string) (authBindEx *auth2.AuthBindEx, err error) {