添加uniapp消息通知,删除老版本消息通知

This commit is contained in:
邹宗楠
2023-03-20 17:28:21 +08:00
parent 522997137c
commit 024cd86425
6 changed files with 5 additions and 123 deletions

View File

@@ -105,7 +105,7 @@ func (h *Hub) GetToken(tokenType, oldToken string, waitTime time.Duration) (toke
token = string(utils.MustMarshal(weimobToken))
}
case EventTypePushToken:
token = api.PushAPI.CBGetToken()
token, _ = api.UniAppApi.CheckTokenIsExpire()
case EventTypeWX2Token:
token = api.WeixinMiniAPI2.CBGetToken()
}