1
This commit is contained in:
@@ -80,3 +80,7 @@ func TestRefreshAccessToken(t *testing.T) {
|
|||||||
fmt.Println(utils.Format4Output(result, false))
|
fmt.Println(utils.Format4Output(result, false))
|
||||||
t.Log(utils.Format4Output(result, false))
|
t.Log(utils.Format4Output(result, false))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestPushPrintMsg(t *testing.T) {
|
||||||
|
api.PushPrintMsg("2401171703736658807")
|
||||||
|
}
|
||||||
|
|||||||
@@ -779,3 +779,12 @@ func (a *API) CancelLogisticsByWmOrderId(reasonCode, detailContent, appPoiCode,
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// PushPrintMsg 推送订单打印消息,打印机打印时推送次消息
|
||||||
|
func (a *API) PushPrintMsg(orderId string) error {
|
||||||
|
_, err := a.AccessAPI("ecommerce/poi/keyPointUpload", false, map[string]interface{}{
|
||||||
|
"order_id": orderId,
|
||||||
|
"op_type": 1,
|
||||||
|
})
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user