飞鹅打印机在打印订单时,有时会返回返回成功时失败

This commit is contained in:
gazebo
2020-01-13 09:23:23 +08:00
parent d906f8eade
commit 05c6cef29a

View File

@@ -188,7 +188,10 @@ func (a *API) PrintMsg(sn, content string, times int) (orderID string, err error
"times": times,
})
if err == nil {
return result.(string), nil
if result != nil {
return result.(string), nil
}
err = fmt.Errorf("飞鹅sn:%s非正常的结果返回", sn)
}
return "", err
}