11
This commit is contained in:
@@ -61,6 +61,7 @@ const (
|
||||
UpdateUserTypeAdd = 1
|
||||
UpdateUserTypeDelete = 2
|
||||
UpdateUserTypeUpdate = 3
|
||||
WeCartAppID = "wx4b5930c13f8b1170"
|
||||
)
|
||||
|
||||
type IUserProvider interface {
|
||||
@@ -296,6 +297,9 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string
|
||||
} else {
|
||||
authInfo.IsExistOpenID = true
|
||||
}
|
||||
if WeCartAppID == appID {
|
||||
authInfo.AppID = WeCartAppID
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,6 +74,7 @@ type AuthInfo struct {
|
||||
Token string `json:"token"`
|
||||
TokenType int `json:"tokenType"` // TOKEN类型,
|
||||
IsExistOpenID bool `json:"isExistOpenID"`
|
||||
AppID string `json:"appId"` // appId
|
||||
}
|
||||
|
||||
func (a *AuthInfo) GetAuthID() string {
|
||||
|
||||
Reference in New Issue
Block a user