main
fengxinyhyl 6 months ago
parent 20c8b9d844
commit ea524c1ee7
  1. 2
      app/common/repositories/store/product/ProductRepository.php

@ -1847,7 +1847,7 @@ class ProductRepository extends BaseRepository
throw new ValidateException('商品正在参与预售活动');
if ($status == 1 && $product['product_type'] == 3)
throw new ValidateException('商品正在参与助力活动');
$this->dao->update($id, [$field => $status]);
$this->dao->update($id, [$field => $status, 'mer_status' => $status]);
app()->make(SpuRepository::class)->changeStatus($id, $product->product_type);
//记录操作日志

Loading…
Cancel
Save