Autolink.php 584 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace addons\cms\model;
  3. use think\Db;
  4. use think\Model;
  5. /**
  6. * 自动链接模型
  7. */
  8. class Autolink extends Model
  9. {
  10. protected $name = "cms_autolink";
  11. // 开启自动写入时间戳字段
  12. protected $autoWriteTimestamp = 'int';
  13. // 定义时间戳字段名
  14. protected $createTime = 'createtime';
  15. protected $updateTime = 'updatetime';
  16. // 追加属性
  17. protected $append = [
  18. ];
  19. protected static $config = [];
  20. protected static function init()
  21. {
  22. $config = get_addon_config('cms');
  23. self::$config = $config;
  24. }
  25. }