feat: 移除了更新分支商品的冗余代码
This commit is contained in:
parent
5722cf09e7
commit
ab96b647ef
@ -157,10 +157,6 @@ class StoreProductLogic extends BaseLogic
|
||||
StoreProduct::where('id', $params['id'])->update($data);
|
||||
$old_cate = StoreBranchProduct::where('product_id', $params['id'])->field('cate_id,store_id')
|
||||
->select();
|
||||
StoreBranchProduct::where('product_id', $params['id'])
|
||||
->update([
|
||||
'batch' => $params['batch'], 'price' => $params['price'], 'vip_price' => $params['vip_price'], 'cost' => $params['purchase'], 'store_name' => $params['store_name'], 'image' => $params['image'], 'bar_code' => $params['bar_code']
|
||||
]);
|
||||
// 获取分类ID
|
||||
foreach ($old_cate as $vv) {
|
||||
$related_data = Db::name('store_product_cate')->where('cate_id', $vv['cate_id'])->select();
|
||||
|
Loading…
x
Reference in New Issue
Block a user