diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index a4d46e2f..f714fd91 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -82,6 +82,7 @@ class ProductRepository extends BaseRepository '2' => 'product_presell_success', '3' => 'product_assist_success', '4' => 'product_group_success', + '98' => 'product_success', 'msg' => '审核通过' ], -1 => [ @@ -90,6 +91,7 @@ class ProductRepository extends BaseRepository '2' => 'product_presell_fail', '3' => 'product_assist_fail', '4' => 'product_group_fail', + '98' => 'product_fail', 'msg' => '审核失败' ], -2 => [ @@ -98,6 +100,7 @@ class ProductRepository extends BaseRepository '2' => 'product_presell_fail', '3' => 'product_assist_fail', '4' => 'product_group_fail', + '98' => 'product_fail', 'msg' => '被下架' ], ]; @@ -1621,7 +1624,7 @@ class ProductRepository extends BaseRepository $this->dao->update($id, $data); $status = $data['status']; $type = self::NOTIC_MSG[$data['status']][$product['product_type']]; - $message = '您有1个' . ($product['product_type'] ? '秒杀商品' : '商品') . self::NOTIC_MSG[$data['status']]['msg']; + $message = '您有1个' . ($product['product_type'] == 1 ? '秒杀商品' : '商品') . self::NOTIC_MSG[$data['status']]['msg']; SwooleTaskService::merchant('notice', [ 'type' => $type, 'data' => [