From 16c40aa51c096aa1709020d51cd08ae9b28d67bb Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Wed, 13 Apr 2022 16:25:33 +0800 Subject: [PATCH] getui --- internal/push/getui/push.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/push/getui/push.go b/internal/push/getui/push.go index f46b0d0ee..b91b51fc2 100644 --- a/internal/push/getui/push.go +++ b/internal/push/getui/push.go @@ -136,9 +136,11 @@ func (g *Getui) Push(userIDList []string, alert, detailContent, operationID stri err = g.request(PushURL, pushReq, token, &pushResp, operationID) switch err { case TokenExpireError: - _, err = g.getTokenAndSave2Redis(operationID) + token, err = g.getTokenAndSave2Redis(operationID) if err != nil { log.NewError(operationID, utils.GetSelfFuncName(), "getTokenAndSave2Redis failed, ", err.Error()) + } else { + log.NewInfo(operationID, utils.GetSelfFuncName(), "getTokenAndSave2Redis: ", token) } } if err != nil {