- 将飞鹅的一些信息转化得更易懂
This commit is contained in:
@@ -59,11 +59,11 @@ func TestPrinterDelList(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestQueryOrderInfoByDate(t *testing.T) {
|
||||
data, err := api.QueryOrderInfoByDate("218510310", time.Now())
|
||||
printed, waiting, err := api.QueryOrderInfoByDate("218510310", time.Now())
|
||||
if err != nil {
|
||||
t.Fatalf("QueryOrderInfoByDate return error:%v", err)
|
||||
}
|
||||
baseapi.SugarLogger.Debug(utils.Format4Output(data, false))
|
||||
baseapi.SugarLogger.Debugf("print:%d, waiting:%d", printed, waiting)
|
||||
}
|
||||
|
||||
func TestDelPrinterSqs(t *testing.T) {
|
||||
@@ -80,3 +80,11 @@ func TestQueryPrinterStatus(t *testing.T) {
|
||||
}
|
||||
baseapi.SugarLogger.Debug(status)
|
||||
}
|
||||
|
||||
func TestQueryOrderState(t *testing.T) {
|
||||
status, err := api.QueryOrderState("218510310")
|
||||
if err != nil {
|
||||
t.Fatalf("QueryOrderState return error:%v", err)
|
||||
}
|
||||
baseapi.SugarLogger.Debug(status)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user