CardDayCollect.php 428 B

12345678910111213141516171819202122
  1. <?php
  2. namespace app\common\model;
  3. use think\Model;
  4. class CardDayCollect extends Model{
  5. //表明
  6. protected $table='card_day_collect';
  7. // 定义时间戳字段名
  8. protected $createTime = 'createtime';
  9. protected $updateTime = 'updatetime';
  10. public function __construct($data = [])
  11. {
  12. parent::__construct($data);
  13. if (!$this->connect) {
  14. $this->connect(get_db_collect($this->table));
  15. $this->connect = true;
  16. }
  17. }
  18. }