opensdk
This commit is contained in:
parent
e87107462a
commit
6c66a43202
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue