From ea524c1ee7fc5c59682470e194697d4df5610e0f Mon Sep 17 00:00:00 2001 From: fengxinyhyl Date: Fri, 9 Aug 2024 13:36:34 +0800 Subject: [PATCH] fix bug --- app/common/repositories/store/product/ProductRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index af13c39..a20f739 100755 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/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); //记录操作日志