快手打印组件文档: https://docs.qingque.cn/d/home/eZQA41D2h9LGUFaD26bC07e–?identityId=EmukFTnlEF#section=h.kgnfm4rjc89m
快手打印组件下载: https://docs.qingque.cn/d/home/eZQBMOMSj4mJ5D7Xplofq-p4Y?identityId=EmukFTnlEF
快手打印数据格式:
打印参数与抖音,菜鸟打印组件格式有些区别
需要传key,ver也不一样
formateKuaishou(printer, data, order_id) {
let request = {
cmd: "print",
requestID: data.pack_id,
version: "1.0",
task: {
taskID: `${order_id}_${this.getUUID()}`,
preview: false,
printer: printer.current,
documents: [
{
documentID: order_id,
contents: [
{
addData: data.addData,
encryptedData: data.encryptedData,
signature: data.signature,
templateURL: data.templateURL,
key: data.key,
ver: "waybill_print_secret_version_1"
}
]
}
]
}
};
return request;
}