增加请求参数日志
This commit is contained in:
parent
9b3913ed60
commit
06a645973e
|
@ -124,10 +124,10 @@ class Order
|
|||
|
||||
$result = 'json' === self::DEFAULT_FORMAT ? json_decode($response, true) : $response;
|
||||
// 日志
|
||||
$this->logger(['response' => $result]);
|
||||
$this->logger(['request' => $body, 'response' => $result]);
|
||||
return $result;
|
||||
} catch (\Exception $e) {
|
||||
$this->logger(['response' => $e]);
|
||||
$this->logger(['request' => $body, 'response' => $e]);
|
||||
throw new HttpException($e->getMessage(), $e->getCode(), $e);
|
||||
}
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ class Order
|
|||
* 获取工单信息
|
||||
* @param $order_sn
|
||||
* @return mixed|string
|
||||
* @throws \Exception|GuzzleException
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function getProductOrder($order_sn)
|
||||
{
|
||||
|
@ -150,29 +150,26 @@ class Order
|
|||
* 加工工单原木材种
|
||||
* @return mixed|string
|
||||
* @throws GuzzleException
|
||||
* @throws HttpException
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
public function getWoodTypeOptions($data)
|
||||
{
|
||||
return $this->baseFun($data, 'Wood.types');
|
||||
return $this->sendRequest('Wood.types', $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 加工等级
|
||||
* @return mixed|string
|
||||
* @throws GuzzleException
|
||||
* @throws HttpException
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
public function getProductionLevelOptions($data)
|
||||
{
|
||||
return $this->baseFun($data, 'production.levels');
|
||||
return $this->sendRequest('production.levels', $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 加工工单创建
|
||||
* @return mixed|string
|
||||
* @throws \Exception|GuzzleException
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function createProductOrder($data)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue