...
|
...
|
@@ -541,7 +541,7 @@ class YHMApi_App_V2_Goods extends YHMApi_App_V1_Goods |
|
|
// 获取所有的sku
|
|
|
$skuList = YHMProduct_Models_Stock_Client::getByProductSkc($params ['product_skc']);
|
|
|
$goodsInfo ['sku_list'] = array();
|
|
|
$goodsInfo ['total_stock_number'] = 0;
|
|
|
$goodsInfo ['total_stock_number'] = '0';
|
|
|
if (!empty($skuList))
|
|
|
{
|
|
|
foreach ($skuList as $sku)
|
...
|
...
|
@@ -553,6 +553,7 @@ class YHMApi_App_V2_Goods extends YHMApi_App_V1_Goods |
|
|
);
|
|
|
$goodsInfo ['total_stock_number'] += $sku ['stock_number'];
|
|
|
}
|
|
|
$goodsInfo ['total_stock_number'] = strval($goodsInfo ['total_stock_number']);
|
|
|
}
|
|
|
}
|
|
|
return self::result(YHMConfig_Mobile::SUCCESS_CODE, '获取商品详情.', $goodsInfo);
|
...
|
...
|
|