diff --git a/src/route.php b/src/route.php index 8af73cd..493bd94 100644 --- a/src/route.php +++ b/src/route.php @@ -6,7 +6,7 @@ use function React\Async\coroutine; $path = config('rocket_mq.callback', '/rocketmq/producer/notify'); //注册回调路由 -Route::post($path, function () { +Route::any($path.'$', function () { coroutine(function () { app()->make(Consumer::class, [ request()->param()