Просмотр исходного кода

取消限购的消费者报错 -- 也返回 MSG_ACK

shizhongqi 5 месяцев назад
Родитель
Сommit
35ef9ab774
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      common/components/rabbitmq/cancelLimitBuyConsumer.php

+ 2 - 1
common/components/rabbitmq/cancelLimitBuyConsumer.php

@@ -52,7 +52,8 @@ class cancelLimitBuyConsumer implements ConsumerInterface
             }
         } catch (\Exception $e) {
             noticeUtil::push("取消限购的消费者报错:" . $e->getMessage());
-            return ConsumerInterface::MSG_REQUEUE;
+            //return ConsumerInterface::MSG_REQUEUE;
+            return ConsumerInterface::MSG_ACK;
         }
     }