From 84e1b5ce131d8d9c9046c8f286fe2865e6e4d0ef Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Sun, 29 Sep 2024 16:17:29 +0800 Subject: [PATCH] 1 --- app/lib/wechat/wechat_api.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/lib/wechat/wechat_api.go b/app/lib/wechat/wechat_api.go index 6e79ebf..b92b24b 100644 --- a/app/lib/wechat/wechat_api.go +++ b/app/lib/wechat/wechat_api.go @@ -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 }