每次修改队列代码需要执行更新指令 php artisan queue:restart 然后重新开启 php artisan queue:work 注意 集群redis分布式下没有执行是因为传入的key需要’{}’,它与单机redis不一致。