huangjiajun 2 months ago
parent
commit
84e1b5ce13
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      app/lib/wechat/wechat_api.go

+ 5
- 1
app/lib/wechat/wechat_api.go View File

@@ -27,7 +27,7 @@ func NewWxApiService(masterId, componentAppid, componentAppsecret string) (wxApi
wxApiService.ComponentAppsecret = componentAppsecret
wxApiService.Host = "http://super.advertisement.dengbiao.top"
if cfg.Prd {
wxApiService.Host = "http://www.baidu.com"
wxApiService.Host = "http://ad.zhios.cn"
}
cacheKey := fmt.Sprintf(md.MasterComponentVerifyTicket, wxApiService.MasterId)
cacheComponentVerifyTicket, _ := cache.GetString(cacheKey)
@@ -86,6 +86,10 @@ func (wxApiService *WxApiService) GetComponentAccessToken() (cacheComponentAcces
func (wxApiService *WxApiService) GetAuth(appId string) (cacheApiAuthorizerToken string, err error) { // set方法
userWxAppletListDb := implement.NewUserWxAppletListDb(db.Db)
userWxAppletList, err1 := userWxAppletListDb.GetUserWxAppletListByAppId(appId)
fmt.Println(db.Db)
fmt.Println(appId)
fmt.Println(userWxAppletList)
fmt.Println(err1)
if err1 != nil {
return cacheApiAuthorizerToken, err1
}


Loading…
Cancel
Save