- authType userID2 to userid2

This commit is contained in:
gazebo
2019-03-05 12:06:24 +08:00
parent 5d0b5ec360
commit 8a1425c4d0
4 changed files with 12 additions and 2 deletions

View File

@@ -174,6 +174,8 @@ func SendVerifyCode(authToken, captchaID, captchaValue, authID string) (err erro
// 微信登录authIDType是UserIDEmptyauthSecret是code这个函数是被微信的回调调用不是直接被客户端调用
// 小程序登录authIDType是UserIDEmptyauthSecret是jsCode
func Login(authType, authID, authIDType, authSecret string) (authInfo *AuthInfo, err error) {
authType = strings.ToLower(authType)
authIDType = strings.ToLower(authIDType)
if handler := authers[authType]; handler != nil {
var authBind *model.AuthBind
var user IUser