增加打印机声音设置
This commit is contained in:
@@ -278,3 +278,13 @@ func (a *API) GetOrderPagingList(machineCode, token string, pageIndex, pageSize
|
||||
}
|
||||
return orderResultList, err
|
||||
}
|
||||
|
||||
// 设置打印机声音
|
||||
func (a *API) SetSound(machineCode, voice string) (err error) {
|
||||
_, err = a.AccessAPI("printer/setsound", map[string]interface{}{
|
||||
"machine_code": machineCode,
|
||||
"response_type": "horn", //蜂鸣器buzzer或喇叭,易连云默认喇叭
|
||||
"voice": voice,
|
||||
}, "")
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user