From 8f7120cafcfe2ae136d1cc14d6645fbadc482cc6 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Wed, 23 Aug 2023 12:35:52 +0800 Subject: [PATCH] Update tencentyun.go --- common/tencentyun/tencentyun.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/common/tencentyun/tencentyun.go b/common/tencentyun/tencentyun.go index 0ede32e..1b4c472 100644 --- a/common/tencentyun/tencentyun.go +++ b/common/tencentyun/tencentyun.go @@ -4,14 +4,12 @@ import ( "bytes" "encoding/json" "fmt" + "hilo-micCenter/common/config" "io/ioutil" "math/rand" "net/http" "strconv" "strings" - "time" - - "hilo-micCenter/common/config" "github.com/sirupsen/logrus" "github.com/tencentyun/tls-sig-api-v2-golang/tencentyun" @@ -58,7 +56,7 @@ func SendSystemMsg(logger *logrus.Entry, groupId string, members []string, conte func SendSystemMsgBy(logger *logrus.Entry, txGroupId string, members []string, content string, reqUrl string, getAdminSig func() (string, error), appId int) error { logger = logger.WithField("appId", appId).WithField("txGroupId", txGroupId) //logger.Infof("SendSystemMsg content: %s", content) - beginTime := time.Now() + //beginTime := time.Now() type BodyStruct struct { GroupId string @@ -102,8 +100,8 @@ func SendSystemMsgBy(logger *logrus.Entry, txGroupId string, members []string, c return err } - endTime := time.Now() - logger.Infof("SendSystemMsg takes %dms: rsp: %+v", endTime.Sub(beginTime).Milliseconds(), response) + //endTime := time.Now() + //logger.Infof("SendSystemMsg takes %dms: rsp: %+v", endTime.Sub(beginTime).Milliseconds(), response) if response.ErrorCode == 0 { return nil -- 2.22.0