From 07e21a6dec4e03617b4a3adacbc28a163557bf96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 27 Jul 2022 18:49:37 +0800 Subject: [PATCH] 1 --- business/jxstore/event/event_tcp.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index 32255c58a..dfd9d19f1 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -255,7 +255,9 @@ 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) }