Commit f4bfb71d authored by hangjun83's avatar hangjun83

接口bug修复

parent 17b9b6bf
......@@ -239,14 +239,14 @@ class ZhenkhApiService extends PlatformAbstractService
try{
if($this->checkPlatformStatus()){
$params = [
$postParams = [
'customPrice' => $params['price'],
'priceUnit' => $params['price_unit'],
'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',
[$params],null,
[$postParams],null,
[
'honeycombToken' => $token,
'Content-Type' => 'application/json;charset=UTF-8'
......@@ -274,15 +274,15 @@ class ZhenkhApiService extends PlatformAbstractService
try{
if($this->checkPlatformStatus()){
$params = [
$postParams = [
'supplierWarehouseName' => $params['warehouse'],
'warehouseNameList' => $params['address'],
'qty' => intval($params['qty']),
'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',
[$params],null,
[$postParams],null,
[
'honeycombToken' => $token,
'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