From 7476e9a72108f7533a45b131bc7b64cb6bde0aad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 28 Jul 2022 13:44:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=AD=E9=9F=B3=E6=9A=82=E5=81=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/event/event_tcp.go | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index dfd9d19f1..2725b3940 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -10,7 +10,6 @@ import ( "net" "strings" "time" - "unicode/utf8" ) //入口 @@ -254,13 +253,13 @@ func (t *TcpClient) doPrint(key string) (err error) { //判断音频暂停? //收到打印成功回调后,如果消息中有音频,需要等待一下,等上一个音频播完 //暂停时间就暂时取的sound标签内内容长度/2 - if sounds := regexpSoundSpan.FindStringSubmatch(printMsg.Content); len(sounds) > 0 { - globals.SugarLogger.Debug("sound =====================", sounds) - sound := sounds[1] - globals.SugarLogger.Debug("sound =====================", sound) - lenTime := time.Duration(utf8.RuneCountInString(sound)) * time.Second - time.Sleep(lenTime / 2) - } + //if sounds := regexpSoundSpan.FindStringSubmatch(printMsg.Content); len(sounds) > 0 { + // globals.SugarLogger.Debug("sound =====================", sounds) + // sound := sounds[1] + // globals.SugarLogger.Debug("sound =====================", sound) + // lenTime := time.Duration(utf8.RuneCountInString(sound)) * time.Second + // time.Sleep(lenTime / 2) + //} } } }