Commit f4bfb71d authored by hangjun83's avatar hangjun83

接口bug修复

parent 17b9b6bf
...@@ -239,14 +239,14 @@ class ZhenkhApiService extends PlatformAbstractService ...@@ -239,14 +239,14 @@ class ZhenkhApiService extends PlatformAbstractService
try{ try{
if($this->checkPlatformStatus()){ if($this->checkPlatformStatus()){
$params = [ $postParams = [
'customPrice' => $params['price'], 'customPrice' => $params['price'],
'priceUnit' => $params['price_unit'], 'priceUnit' => $params['price_unit'],
'zkhSku' => $params['sku'] 'zkhSku' => $params['sku']
]; ];
SimpleLogs::writeLog('zkh api params => '.$params,__CLASS__.':updateReportProductPrice'); SimpleLogs::writeLog('zkh api params => '.$postParams,__CLASS__.':updateReportProductPrice');
$response = $this->getPostClient($this->getPlatformApiUrl().'/openApi/v1/common/report/price', $response = $this->getPostClient($this->getPlatformApiUrl().'/openApi/v1/common/report/price',
[$params],null, [$postParams],null,
[ [
'honeycombToken' => $token, 'honeycombToken' => $token,
'Content-Type' => 'application/json;charset=UTF-8' 'Content-Type' => 'application/json;charset=UTF-8'
...@@ -274,15 +274,15 @@ class ZhenkhApiService extends PlatformAbstractService ...@@ -274,15 +274,15 @@ class ZhenkhApiService extends PlatformAbstractService
try{ try{
if($this->checkPlatformStatus()){ if($this->checkPlatformStatus()){
$params = [ $postParams = [
'supplierWarehouseName' => $params['warehouse'], 'supplierWarehouseName' => $params['warehouse'],
'warehouseNameList' => $params['address'], 'warehouseNameList' => $params['address'],
'qty' => intval($params['qty']), 'qty' => intval($params['qty']),
'zkhSku' => $params['sku'] 'zkhSku' => $params['sku']
]; ];
SimpleLogs::writeLog('zkh api params => '.$params,__CLASS__.':updateReportProductStock'); SimpleLogs::writeLog('zkh api params => '.$postParams,__CLASS__.':updateReportProductStock');
$response = $this->getPostClient($this->getPlatformApiUrl().'/openApi/v2/common/report/stock', $response = $this->getPostClient($this->getPlatformApiUrl().'/openApi/v2/common/report/stock',
[$params],null, [$postParams],null,
[ [
'honeycombToken' => $token, 'honeycombToken' => $token,
'Content-Type' => 'application/json;charset=UTF-8' 'Content-Type' => 'application/json;charset=UTF-8'
......
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