|
@@ -219,7 +219,7 @@ func toSendTemplateMsgCygx(data []byte, resource string, sendType int, openId, u
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
func getWxAccessTokenCygx()(accessToken string,err error,errMsg string){
|
|
|
var tokenKey string
|
|
|
if utils.RunMode == "debug"{
|
|
@@ -238,7 +238,10 @@ func getWxAccessTokenCygx()(accessToken string,err error,errMsg string){
|
|
|
|
|
|
|
|
|
func refreshWxAccessTokenCygx()(accessToken string,err error,errMsg string){
|
|
|
- fmt.Println("强制刷新微信token")
|
|
|
+ fmt.Println("强制刷新"+utils.WxAppIdCygx+"微信token")
|
|
|
+ if errMsg !=``{
|
|
|
+ utils.FileLog.Info(fmt.Sprintf("强制刷新%s微信token异常:%s", utils.WxAppIdCygx,errMsg))
|
|
|
+ }
|
|
|
|
|
|
wxAccessToken, tmpErr := models.GetWxTokenCygx()
|
|
|
if tmpErr != nil {
|