diff --git a/common/tencentyun/tencentyun.go b/common/tencentyun/tencentyun.go index 0ede32e81817efe9b40ebd9057730c610cd8b28f..1b4c472268b6c64183fbfb6769c687868b3da669 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