1
This commit is contained in:
@@ -3,6 +3,8 @@ package trenditapi
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"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,
|
VoicePlayInterval: 3,
|
||||||
Copies: 1,
|
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 {
|
if resp.HttpStatusCode != HttpStatusSuccessCode {
|
||||||
return "", errors.New("HTTP请求错误,请检查重试")
|
return "", errors.New("HTTP请求错误,请检查重试")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user