生成訂單
~~~
/plugins/sale_order/api/v1_create.php
~~~
參數
`type` : 1配送,2自提,3無需物流。打印照片,應傳3
`data` : 訂單詳情,數組。如下
~~~
[{
product_img: "" 文件地址
product_name: "" 文件名
product_price: "" 單價
num:'' 數量
//如果是doc這類文檔類型,非圖片格式。打印時,存在頁數選項的情況。需要添加 par1參數。
par1:{
page_start:1 //
page_end:9
}
}]
~~~
*****
以下為普通商品訂單,非照片打印使用。
~~~
[{
product_id: "" 產品ID
product_img: "" 圖片
product_line_price: 劃線價
product_name: "" 產品名稱
product_num: "" 產品編號
product_price: "" 單價
num:'' 數量
}]
~~~