+ 新增易联云CancelAll

This commit is contained in:
gazebo
2019-07-18 18:36:52 +08:00
parent 061e906d17
commit e2c3cb8a29
2 changed files with 18 additions and 6 deletions

View File

@@ -246,3 +246,10 @@ func (a *API) GetPrinterToken(machineCode, qrKey string) (tokenInfo *TokenInfo,
func IsStrToken(possibleToken string) bool {
return len(possibleToken) >= len("d65578a6fa414d738e0c44f85ac4b950")
}
func (a *API) CancelAll(machineCode string) (err error) {
_, err = a.AccessAPI("printer/cancelall", map[string]interface{}{
"machine_code": machineCode,
}, "")
return err
}