注释分类相关逻辑待修改
This commit is contained in:
parent
7981e126f3
commit
69ed8b332d
@ -154,7 +154,8 @@ class StoreProductLogic extends BaseLogic
|
||||
];
|
||||
|
||||
StoreProduct::where('id', $params['id'])->update($data);
|
||||
$old_cate = StoreBranchProduct::where('product_id', $params['id'])->field('cate_id,store_id')
|
||||
|
||||
/*$old_cate = StoreBranchProduct::where('product_id', $params['id'])->field('cate_id,store_id')
|
||||
->select();
|
||||
// 获取分类ID
|
||||
foreach ($old_cate as $vv) {
|
||||
@ -169,13 +170,13 @@ class StoreProductLogic extends BaseLogic
|
||||
//新增对应的分类
|
||||
self::updateGoodsclass($params['cate_id'], $value['store_id']);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
//修改
|
||||
StoreBranchProduct::where('product_id', $params['id'])->update([
|
||||
'price' => $params['price'], 'vip_price' => $params['vip_price'],
|
||||
'cost' => $params['cost'], 'cate_id' => $params['cate_id'],
|
||||
'cost' => $params['cost'],
|
||||
'batch'=>$params['batch'],'store_name'=>$params['store_name']
|
||||
]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user