Browse Source

传入message id

visuddhinanda 1 year ago
parent
commit
06c1ac9dc7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api-v8/app/Http/Api/Mq.php

+ 1 - 1
api-v8/app/Http/Api/Mq.php

@@ -122,7 +122,7 @@ class Mq
             ]);
             ]);
             if ($callback !== null) {
             if ($callback !== null) {
                 try {
                 try {
-                    $result = $callback(json_decode($message->getBody()));
+                    $result = $callback(json_decode($message->getBody()), $message->get('message_id'));
                     Log::debug(
                     Log::debug(
                         'mq done',
                         'mq done',
                         [
                         [