|
|
@ -10,15 +10,15 @@ import ( |
|
|
|
|
|
|
|
func GetCodeUrl() string { |
|
|
|
uid := helper.CreateUUID() |
|
|
|
return fmt.Sprintf(CodeUrl, define.AppId, url.PathEscape(RedirectUri), uid) |
|
|
|
return fmt.Sprintf(CodeUrl, define.SubAppId, url.PathEscape(RedirectUri), uid) |
|
|
|
} |
|
|
|
|
|
|
|
func GetAccessTokenUrl(code string) string { |
|
|
|
return fmt.Sprintf(AccessTokenUrl, define.AppId, define.Secret, code) |
|
|
|
return fmt.Sprintf(AccessTokenUrl, define.SubAppId, define.Secret, code) |
|
|
|
} |
|
|
|
|
|
|
|
func GetRefreshTokenUrl(refreshToken string) string { |
|
|
|
return fmt.Sprintf(RefreshTokenUrl, define.AppId, refreshToken) |
|
|
|
return fmt.Sprintf(RefreshTokenUrl, define.SubAppId, refreshToken) |
|
|
|
} |
|
|
|
|
|
|
|
func GetAuthUrl(accessToken string, openid string) string { |
|
|
@ -34,7 +34,7 @@ func GetTicketUrl(ticketToken string) string { |
|
|
|
} |
|
|
|
|
|
|
|
func GetTicketTokenUrl() string { |
|
|
|
return fmt.Sprintf(TicketTokenUrl, define.AppId, define.Secret) |
|
|
|
return fmt.Sprintf(TicketTokenUrl, define.SubAppId, define.Secret) |
|
|
|
} |
|
|
|
|
|
|
|
///
|
|
|
|