|
@@ -191,7 +191,7 @@ class CombindStock extends Base
|
|
|
$up =GoodStockInfo::StockBnSub($stock->id,intval($row->stock_num));
|
|
|
if(empty($up)) throw new \Exception('未找到对应子商品BN库存信息');
|
|
|
foreach ($up as $item){
|
|
|
- $bnlist =$this->combind->subStock($row->spuCode,$row->bnCode,$item['num']);
|
|
|
+ $bnlist =$this->combind->subStock($row->spuCode,$item['bnCode'],$item['num']);
|
|
|
if($bnlist==false)throw new \Exception('子商品BN库存信息更新失败');
|
|
|
}
|
|
|
}
|