瀏覽代碼

传入message id

visuddhinanda 10 月之前
父節點
當前提交
06c1ac9dc7
共有 1 個文件被更改,包括 1 次插入1 次删除
  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',
                         [
                         [