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
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)
}