1
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user