diff --git a/weixin/app_sdk.go b/weixin/app_sdk.go index 71f5610..7a518c0 100644 --- a/weixin/app_sdk.go +++ b/weixin/app_sdk.go @@ -1,11 +1,11 @@ package weixin -type AppSdk struct { +type OpenSdk struct { BaseSdk } -func NewAppSdk(appid, secret string) *AppSdk { - return &AppSdk{ +func NewOpenSdk(appid, secret string) *OpenSdk { + return &OpenSdk{ BaseSdk{ appid: appid, secret: secret, @@ -13,6 +13,6 @@ func NewAppSdk(appid, secret string) *AppSdk { } } -func (o *AppSdk) GetUserInfoByCode(code string) (*UserInfo, error) { +func (o *OpenSdk) GetUserInfoByCode(code string) (*UserInfo, error) { return o.getUserInfoByCode(code, true) }