shish il y a 6 ans
Parent
commit
4eed1ca196
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      common/components/rabbitmq/consumer/InformConsumer.php

+ 2 - 1
common/components/rabbitmq/consumer/InformConsumer.php

@@ -24,8 +24,9 @@ class InformConsumer implements ConsumerInterface
 	public function execute(AMQPMessage $msg)
 	public function execute(AMQPMessage $msg)
 	{
 	{
 		$data = unserialize($msg->body);
 		$data = unserialize($msg->body);
-		$userType = $data['userType'];
 		print_r($data);
 		print_r($data);
+		return ConsumerInterface::MSG_ACK;
+		$userType = $data['userType'];
 		if ($userType == 'user') {
 		if ($userType == 'user') {
 			$return = InformUserService::consumeInformQueue($data);
 			$return = InformUserService::consumeInformQueue($data);
 			if ($return) {
 			if ($return) {