This commit is contained in:
邹宗楠
2025-03-24 15:40:21 +08:00
parent 2663099187
commit cf38acc037
12 changed files with 64 additions and 44 deletions

View File

@@ -155,14 +155,18 @@ func (a *API) CleanWaitingQueue(sn string) error {
//打印小票
func (a *API) Print(sn, content, voice string) (string, error) {
resp, err := a.HttpPostJson("print", PrintReq{
param := PrintReq{
Sn: sn,
Content: content,
Voice: voice,
VoicePlayTimes: 1,
VoicePlayInterval: 3,
Copies: 1,
})
}
//if sn == "580011097147" { // 这个门店要三次
// param.VoicePlayTimes = 3
//}
resp, err := a.HttpPostJson("print", param)
if err != nil {
return "", err
}