mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-08-30 12:45:32 +08:00
改进数据表的前缀设置
This commit is contained in:
2
base.php
2
base.php
@@ -90,7 +90,7 @@ function G($start,$end='',$dec=6) {
|
||||
* @return Model
|
||||
*/
|
||||
function M($name='', $tablePrefix='',$connection='') {
|
||||
return think\Loader::table($name,['table_prefix'=>$tablePrefix,'connection'=>$connection]);
|
||||
return think\Loader::table($name,['prefix'=>$tablePrefix,'connection'=>$connection]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user