12345678910111213141516171819202122232425262728 |
- <?php
- namespace app\common\model;
- use think\Model;
- class GuideAppCollect extends Model
- {
- // 表名
- protected $table = 'guide_app_collect';
-
- // 自动写入时间戳字段
- protected $autoWriteTimestamp = 'int';
- // 定义时间戳字段名
- 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;
- }
- }
- }
|