改名
This commit is contained in:
@@ -126,6 +126,8 @@ class Kafka extends \Snowflake\Process\Process
|
|||||||
protected function handlerExecute($topic, $message)
|
protected function handlerExecute($topic, $message)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
$topic = str_replace('-', '_', $topic);
|
||||||
|
|
||||||
$namespace = 'App\\Kafka\\' . ucfirst($topic) . 'Consumer';
|
$namespace = 'App\\Kafka\\' . ucfirst($topic) . 'Consumer';
|
||||||
if (!class_exists($namespace)) {
|
if (!class_exists($namespace)) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user