123456789101112131415161718192021222324252627282930 |
- <?php
- namespace app\common\model;
- use app\common\library\Redis;
- use think\Model;
- class ChapterRemainAnalysis extends Model
- {
- // 表名
- protected $table = 'chapter_remain_analysis';
-
- // 自动写入时间戳字段
- protected $autoWriteTimestamp = 'int';
- // 定义时间戳字段名
- protected $createTime = 'createtime';
- protected $updateTime = 'updatetime';
- private $connect = NULL;
- public function __construct($data = [])
- {
- parent::__construct($data);
- if (!$this->connect) {
- $this->connect(get_db_collect($this->table));
- $this->connect = true;
- }
- }
- }
|