3 Commits

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

View File

@ -32,7 +32,7 @@ $options = [
$w = new Order($secretKey, 'callback url', $options);
// 获取工单数据
$response = $w->getProductOrder('SN5436745676543');
$response = $w->getProductOrder(1);
// 加工工单原木材种
$w->getWoodTypeOptions([

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);
}
/**