This commit is contained in:
jiangyong 2025-09-25 20:56:10 +08:00
parent e87107462a
commit 6c66a43202
1 changed files with 4 additions and 4 deletions

View File

@ -1,11 +1,11 @@
package weixin package weixin
type AppSdk struct { type OpenSdk struct {
BaseSdk BaseSdk
} }
func NewAppSdk(appid, secret string) *AppSdk { func NewOpenSdk(appid, secret string) *OpenSdk {
return &AppSdk{ return &OpenSdk{
BaseSdk{ BaseSdk{
appid: appid, appid: appid,
secret: secret, 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) return o.getUserInfoByCode(code, true)
} }