fixed
This commit is contained in:
31
admin/application/common/model/BaseModel.php
Normal file
31
admin/application/common/model/BaseModel.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/*
|
||||
* description:
|
||||
* author:wh
|
||||
* email:
|
||||
* createTime:{2021/6/21} {15:02}
|
||||
*/
|
||||
|
||||
namespace app\common\model;
|
||||
|
||||
|
||||
use think\Db;
|
||||
use think\Model;
|
||||
|
||||
class BaseModel extends Model
|
||||
{
|
||||
|
||||
protected static $log_file = '';//日志文件名
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* desc:
|
||||
* author:wh
|
||||
* @param $self_table
|
||||
* @return \think\db\Query
|
||||
*/
|
||||
protected static function tab($self_table){
|
||||
return Db::table($self_table);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user