12345678910111213141516171819202122 |
- <?php
- namespace app\common\model;
- use think\Model;
- class CardDayCollect extends Model{
- //表明
- protected $table='card_day_collect';
- // 定义时间戳字段名
- protected $createTime = 'createtime';
- protected $updateTime = 'updatetime';
- public function __construct($data = [])
- {
- parent::__construct($data);
- if (!$this->connect) {
- $this->connect(get_db_collect($this->table));
- $this->connect = true;
- }
- }
- }
|