This commit is contained in:
邹宗楠
2024-01-19 15:36:12 +08:00
parent c6cb53c7a3
commit 8d19256710
4 changed files with 49 additions and 33 deletions

View File

@@ -3,8 +3,6 @@ package trenditapi
import (
"errors"
"fmt"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/globals"
)
//增加打印机
@@ -145,9 +143,6 @@ func (a *API) Print(sn, content, voice string) (string, error) {
Copies: 1,
})
globals.SugarLogger.Debugf("==resp===%s", utils.Format4Output(resp, false))
globals.SugarLogger.Debugf("===content==%s", utils.Format4Output(content, false))
globals.SugarLogger.Debugf("===sn==%s", utils.Format4Output(sn, false))
if resp.HttpStatusCode != HttpStatusSuccessCode {
return "", errors.New("HTTP请求错误请检查重试")
}