Compare commits
3 Commits
8e972bb2dd
...
dev
Author | SHA1 | Date | |
---|---|---|---|
5541bd41b6 | |||
44fc0defb5 | |||
e20f6b950e |
@ -32,7 +32,7 @@ $options = [
|
|||||||
$w = new Order($secretKey, 'callback url', $options);
|
$w = new Order($secretKey, 'callback url', $options);
|
||||||
|
|
||||||
// 获取工单数据
|
// 获取工单数据
|
||||||
$response = $w->getProductOrder('SN5436745676543');
|
$response = $w->getProductOrder(1);
|
||||||
|
|
||||||
// 加工工单原木材种
|
// 加工工单原木材种
|
||||||
$w->getWoodTypeOptions([
|
$w->getWoodTypeOptions([
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user