ChapterUvRate.php 593 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace app\common\model;
  3. use app\common\library\Redis;
  4. use think\Model;
  5. class ChapterUvRate extends Model
  6. {
  7. // 表名
  8. protected $table = 'chapter_uv_rate';
  9. // 自动写入时间戳字段
  10. protected $autoWriteTimestamp = 'int';
  11. // 定义时间戳字段名
  12. protected $createTime = 'createtime';
  13. private $connect = NULL;
  14. public function __construct($data = [])
  15. {
  16. parent::__construct($data);
  17. if (!$this->connect) {
  18. $this->connect(get_db_collect($this->table));
  19. $this->connect = true;
  20. }
  21. }
  22. }