setTable($table); } // 替换已有的db助手函数 function db($name, $config = []) { return \think\Db::connect($config)->name($name); }