Commit e243164c authored by hangjun83's avatar hangjun83

日志存储

parent 41f05f29
...@@ -210,7 +210,7 @@ class ZhenkhApiService extends PlatformAbstractService ...@@ -210,7 +210,7 @@ class ZhenkhApiService extends PlatformAbstractService
{ {
try{ try{
if($this->checkPlatformStatus()){ if($this->checkPlatformStatus()){
SimpleLogs::writeLog('zkh api params => '.$deliveryOrder,__CLASS__.':ackDeliveryOrder'); SimpleLogs::writeLog($deliveryOrder,__CLASS__.':ackDeliveryOrder');
$response = $this->getPostClient($this->getPlatformApiUrl().'/openPoApi/v1/purchaseOrder/ackDeliveryOrderPart', $response = $this->getPostClient($this->getPlatformApiUrl().'/openPoApi/v1/purchaseOrder/ackDeliveryOrderPart',
$deliveryOrder,null, $deliveryOrder,null,
[ [
...@@ -244,7 +244,7 @@ class ZhenkhApiService extends PlatformAbstractService ...@@ -244,7 +244,7 @@ class ZhenkhApiService extends PlatformAbstractService
'priceUnit' => $params['price_unit'], 'priceUnit' => $params['price_unit'],
'zkhSku' => $params['sku'] 'zkhSku' => $params['sku']
]; ];
SimpleLogs::writeLog('zkh api params => '.$postParams,__CLASS__.':updateReportProductPrice'); SimpleLogs::writeLog($postParams,__CLASS__.':updateReportProductPrice');
$response = $this->getPostClient($this->getPlatformApiUrl().'/openApi/v1/common/report/price', $response = $this->getPostClient($this->getPlatformApiUrl().'/openApi/v1/common/report/price',
[$postParams],null, [$postParams],null,
[ [
...@@ -280,7 +280,7 @@ class ZhenkhApiService extends PlatformAbstractService ...@@ -280,7 +280,7 @@ class ZhenkhApiService extends PlatformAbstractService
'qty' => intval($params['qty']), 'qty' => intval($params['qty']),
'zkhSku' => $params['sku'] 'zkhSku' => $params['sku']
]; ];
SimpleLogs::writeLog('zkh api params => '.$postParams,__CLASS__.':updateReportProductStock'); SimpleLogs::writeLog($postParams,__CLASS__.':updateReportProductStock');
$response = $this->getPostClient($this->getPlatformApiUrl().'/openApi/v2/common/report/stock', $response = $this->getPostClient($this->getPlatformApiUrl().'/openApi/v2/common/report/stock',
[$postParams],null, [$postParams],null,
[ [
...@@ -340,7 +340,7 @@ class ZhenkhApiService extends PlatformAbstractService ...@@ -340,7 +340,7 @@ class ZhenkhApiService extends PlatformAbstractService
$params = []; $params = [];
$params['purchaseOrderId'] = $orderNo; $params['purchaseOrderId'] = $orderNo;
SimpleLogs::writeLog('zkh api params => '.$params,__CLASS__.':orderConfirm'); SimpleLogs::writeLog($params,__CLASS__.':orderConfirm');
$response = $this->getPostClient($this->getPlatformApiUrl().'/openPoApi/v1/purchaseOrder/confirm', $response = $this->getPostClient($this->getPlatformApiUrl().'/openPoApi/v1/purchaseOrder/confirm',
$params,null, $params,null,
[ [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment