1
This commit is contained in:
@@ -122,3 +122,16 @@ func (a *Auther) getAPI() *weixinapi.API {
|
||||
func (a *Auther) GetUserType() (userType int8) {
|
||||
return model.UserTypeStoreBoss
|
||||
}
|
||||
|
||||
func GetAPI(authType string) *weixinapi.API {
|
||||
if authType == AuthTypeWeixin {
|
||||
return api.WeixinPageAPI
|
||||
}
|
||||
if authType == AuthTypeWxApp {
|
||||
return api.WeixinApp
|
||||
}
|
||||
if authType == AuthTypeWxAppCaishi {
|
||||
return api.WeixinApp2
|
||||
}
|
||||
return api.WeixinAPI
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user