|
@@ -1772,15 +1772,15 @@ class MCart
|
|
}
|
|
}
|
|
$inventoryMap[$shopId] = $inventoryResult->getData();
|
|
$inventoryMap[$shopId] = $inventoryResult->getData();
|
|
}
|
|
}
|
|
- dump($skuIds) ;
|
|
|
|
|
|
+ var_dump($skuIds) ;
|
|
//获取当前skuIds的主单位,及换算比例
|
|
//获取当前skuIds的主单位,及换算比例
|
|
$skuConversionResult = $this->objMSku->getConversion($skuIds);
|
|
$skuConversionResult = $this->objMSku->getConversion($skuIds);
|
|
if (!$skuConversionResult->isSuccess()) {
|
|
if (!$skuConversionResult->isSuccess()) {
|
|
return ResultWrapper::fail($skuConversionResult->getData(),$skuConversionResult->getErrorCode());
|
|
return ResultWrapper::fail($skuConversionResult->getData(),$skuConversionResult->getErrorCode());
|
|
}
|
|
}
|
|
$skuConversionMapping = $skuConversionResult->getData();
|
|
$skuConversionMapping = $skuConversionResult->getData();
|
|
- dump($skuConversionMapping);
|
|
|
|
- dump($data);
|
|
|
|
|
|
+ var_dump($skuConversionMapping);
|
|
|
|
+ var_dump($data);
|
|
exit();
|
|
exit();
|
|
foreach ($data as $key => &$goods) {
|
|
foreach ($data as $key => &$goods) {
|
|
$thisSku = $skuConversionMapping[$goods['skuId']];
|
|
$thisSku = $skuConversionMapping[$goods['skuId']];
|