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