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