parent
758f9ff5c0
commit
3bd29edc4b
@ -0,0 +1,21 @@
|
||||
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
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
package wechatopen
|
||||
|
||||
// SetAuthorizerAppid 设置代理商小程序
|
||||
func (c *Client) SetAuthorizerAppid(authorizerAppid string) {
|
||||
c.config.authorizerAppid = authorizerAppid
|
||||
return
|
||||
}
|
Loading…
Reference in new issue