Compare commits
2 Commits
8e972bb2dd
...
44fc0defb5
Author | SHA1 | Date |
---|---|---|
hongwenwu | 44fc0defb5 | |
hongwenwu | e20f6b950e |
|
@ -58,6 +58,9 @@ $response = $w->createProductOrder([
|
||||||
'owner' => 'ykxiao'
|
'owner' => 'ykxiao'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
// 获取加工单
|
||||||
|
$response = $w->getProductOrder(1);
|
||||||
|
|
||||||
// 更新加工工单
|
// 更新加工工单
|
||||||
$response = $w->updateProductOrder([
|
$response = $w->updateProductOrder([
|
||||||
'id' => 1,
|
'id' => 1,
|
||||||
|
|
|
@ -138,12 +138,12 @@ class Order
|
||||||
* @return mixed|string
|
* @return mixed|string
|
||||||
* @throws GuzzleException
|
* @throws GuzzleException
|
||||||
*/
|
*/
|
||||||
public function getProductOrder($order_sn)
|
public function getProductOrder($orderId)
|
||||||
{
|
{
|
||||||
$data = [
|
$data = [
|
||||||
'order_sn' => $order_sn
|
'id' => $orderId
|
||||||
];
|
];
|
||||||
return $this->sendRequest('production.status', $data);
|
return $this->sendRequest('production.info', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue