From c6cb53c7a3575ce43532d2c355df7612098aa9be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 19 Jan 2024 09:27:47 +0800 Subject: [PATCH] 1 --- platformapi/trenditapi/trendit.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platformapi/trenditapi/trendit.go b/platformapi/trenditapi/trendit.go index 952d374d..2febb9bc 100644 --- a/platformapi/trenditapi/trendit.go +++ b/platformapi/trenditapi/trendit.go @@ -3,6 +3,8 @@ package trenditapi import ( "errors" "fmt" + "git.rosy.net.cn/baseapi/utils" + "git.rosy.net.cn/jx-callback/globals" ) //增加打印机 @@ -142,6 +144,10 @@ func (a *API) Print(sn, content, voice string) (string, error) { VoicePlayInterval: 3, 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请求错误,请检查重试") }