This commit is contained in:
2024-10-29 14:04:59 +08:00
commit 48bf3e6f33
2839 changed files with 762707 additions and 0 deletions

13
app/helper.php Executable file
View File

@@ -0,0 +1,13 @@
<?php
use think\Db;
// 增加一个新的table助手函数
function table($table, $config = []) {
return \think\Db::connect($config)->setTable($table);
}
// 替换已有的db助手函数
function db($name, $config = []) {
return \think\Db::connect($config)->name($name);
}