修改商品审核的错误

This commit is contained in:
luofei 2023-06-08 17:01:43 +08:00
parent 031f66da22
commit 5a3176f1aa

View File

@ -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' => [