You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package wechatoffice
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"github.com/dtapps/go-library/utils/golog"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (c *Client) GetAppId() string {
|
|
|
|
return c.config.appId
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Client) GetAppSecret() string {
|
|
|
|
return c.config.appSecret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Client) getAccessToken(ctx context.Context) string {
|
|
|
|
c.config.accessToken = c.GetAccessToken(ctx)
|
|
|
|
return c.config.accessToken
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Client) getJsapiTicket(ctx context.Context) string {
|
|
|
|
c.config.jsapiTicket = c.GetJsapiTicket(ctx)
|
|
|
|
return c.config.jsapiTicket
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Client) GetLog() *golog.ApiClient {
|
|
|
|
return c.log.client
|
|
|
|
}
|