1
This commit is contained in:
@@ -123,15 +123,13 @@ func (a *Auther) GetUserType() (userType int8) {
|
||||
return model.UserTypeStoreBoss
|
||||
}
|
||||
|
||||
func GetAPI(authType string) *weixinapi.API {
|
||||
if authType == AuthTypeWeixin {
|
||||
return api.WeixinPageAPI
|
||||
func GetAPI(appID string) *weixinapi.API {
|
||||
miniApi := api.WeixinMiniAPI
|
||||
if len(appID) > 0 && appID == api.WeixinMiniAppID2 {
|
||||
miniApi = api.WeixinMiniAPI2
|
||||
}
|
||||
if authType == AuthTypeWxApp {
|
||||
return api.WeixinApp
|
||||
if len(appID) > 0 && appID == api.WeixinMiniAppIDsc {
|
||||
miniApi = api.WeixinMiniAPIsc
|
||||
}
|
||||
if authType == AuthTypeWxAppCaishi {
|
||||
return api.WeixinApp2
|
||||
}
|
||||
return api.WeixinAPI
|
||||
return miniApi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user