Compare commits

...

2 Commits

Author SHA1 Message Date
hongwenwu 44fc0defb5 获取工单信息 2023-09-11 16:27:48 +08:00
hongwenwu e20f6b950e 获取工单信息 2023-09-11 13:53:27 +08:00
2 changed files with 6 additions and 3 deletions

View File

@ -58,6 +58,9 @@ $response = $w->createProductOrder([
'owner' => 'ykxiao'
]);
// 获取加工单
$response = $w->getProductOrder(1);
// 更新加工工单
$response = $w->updateProductOrder([
'id' => 1,

View File

@ -138,12 +138,12 @@ class Order
* @return mixed|string
* @throws GuzzleException
*/
public function getProductOrder($order_sn)
public function getProductOrder($orderId)
{
$data = [
'order_sn' => $order_sn
'id' => $orderId
];
return $this->sendRequest('production.status', $data);
return $this->sendRequest('production.info', $data);
}
/**