This commit is contained in:
邹宗楠
2024-07-22 17:09:50 +08:00
parent 47f1f7894e
commit b3cef3a479
2 changed files with 13 additions and 0 deletions

View File

@@ -80,3 +80,7 @@ func TestRefreshAccessToken(t *testing.T) {
fmt.Println(utils.Format4Output(result, false))
t.Log(utils.Format4Output(result, false))
}
func TestPushPrintMsg(t *testing.T) {
api.PushPrintMsg("2401171703736658807")
}

View File

@@ -779,3 +779,12 @@ func (a *API) CancelLogisticsByWmOrderId(reasonCode, detailContent, appPoiCode,
}
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
}