diff --git a/src/Builders/Traits/MessageTempMethod.php b/src/Builders/Traits/MessageTempMethod.php index 2d0230e..bb8b2fb 100644 --- a/src/Builders/Traits/MessageTempMethod.php +++ b/src/Builders/Traits/MessageTempMethod.php @@ -20,6 +20,20 @@ trait MessageTempMethod 'requeue', 'pending', 'error' ]; + /** + * 注册本地table + * @param string $table + * @return bool + */ + public function tempTableRegister(string $table): bool + { + if (!in_array($table, self::$_tables)) { + self::$_tables[] = $table; + return true; + } + return false; + } + /** * 初始化temp