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.
22 lines
479 B
22 lines
479 B
package wechatopen
|
|
|
|
func (c *Client) checkComponentIsConfig() error {
|
|
componentAppId := c.GetComponentAppId()
|
|
if componentAppId == "" {
|
|
return componentAppIdNoConfig
|
|
}
|
|
componentAppSecret := c.GetComponentAppSecret()
|
|
if componentAppSecret == "" {
|
|
return componentAppSecretNoConfig
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (c *Client) checkAuthorizerIsConfig() error {
|
|
authorizerAppid := c.GetAuthorizerAppid()
|
|
if authorizerAppid == "" {
|
|
return authorizerAppidNoConfig
|
|
}
|
|
return nil
|
|
}
|